[PATCH 0/2] Allow decimally formatted data for the commands "i2c_write" and "spi"

Sascha Hauer s.hauer at pengutronix.de
Mon Oct 23 00:27:33 PDT 2017


On Thu, Oct 19, 2017 at 08:53:06AM +0200, Ulrich Ölmann wrote:
> Currently both commands set the default base for parsing user supplied data to
> 16 which makes it impossible at all to parse decimal data.
> 
> Presumably this originates from having the convenience to easily copy'n'paste
> hex dumped data into these commands without further preprocessing it before.
> 
> Change the default base to 0 to particularly allow decimally formatted data.
> This is in accordance to what the "mw" command does.
> 
> Changes since (implicit) v1 (20171017) (http://lists.infradead.org/pipermail/barebox/2017-October/031356.html):
>   - extended the commit messages to include the motivation for the change
>   - added Uwe's acked-by
> 
> Ulrich Ölmann (2):
>   commands: i2c: do not restrict i2c_write's data to be hex-formatted
>   commands: spi: do not restrict spi's data to be hex-formatted

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list