]> git.dujemihanovic.xyz Git - u-boot.git/commit
eeprom: refactor i2c bus and devaddr parsing
authorNikita Kiryanov <nikita@compulab.co.il>
Sat, 16 Apr 2016 14:55:11 +0000 (17:55 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 20 May 2016 21:02:09 +0000 (17:02 -0400)
commitc40f03723fba2f77bccd92dd87fcd48c37d13cdc
tree819007ffd5a820911bb96df0d18b7d53e326be8b
parent2d9a76b614c33e660b5556b5f96bd5ee4810953e
eeprom: refactor i2c bus and devaddr parsing

Introduce parse_i2c_bus_addr() to generalize the parsing of i2c bus number and
i2c device address. This is done in preparation for merging layout aware and
layout unaware command parsing into one function.

No functional changes.

Cc: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@konsulko.com>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
cmd/eeprom.c