]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: eeprom: Refactor eeprom device specifier parsing
authorMarek Behún <kabel@kernel.org>
Tue, 21 May 2024 07:13:32 +0000 (09:13 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2024 16:47:59 +0000 (10:47 -0600)
commit15f0536f293e9c75ee5f5e70201593f83654710e
tree3f752256274d189c11120aa2a9aa128d58ed403e
parentfda747c8f1f287607ffac7c6c3b2d99c7f08540e
cmd: eeprom: Refactor eeprom device specifier parsing

In preparation for allowing to access eeprom by driver-model device
name, refactor the eeprom device specifier parsing. Instead of filling
two parameters (i2c_bus, i2c_addr), the parsing function now fills one
parameter of type struct eeprom_dev_spec.

Signed-off-by: Marek Behún <kabel@kernel.org>
cmd/eeprom.c