From: Heiko Schocher Date: Wed, 10 Apr 2019 07:16:29 +0200 Subject: [U-Boot] [PATCH v2 1/2] eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS In-Reply-To: <20190326123853.20026-1-simon.k.r.goldschmidt@gmail.com> References: <20190326123853.20026-1-simon.k.r.goldschmidt@gmail.com> Message-ID: <2a2351c8-3671-921c-90f0-e5eacc3df2fd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, Am 26.03.2019 um 13:38 schrieb Simon Goldschmidt: > The current device model enabled eeprom code only works if > CONFIG_SYS_I2C_EEPROM_BUS is set. > > This patch makes it work without that define so that the bus > number passed to 'eeprom_init' is used. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: None > > cmd/eeprom.c | 23 +++++++++++++++-------- > 1 file changed, 15 insertions(+), 8 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de