On Friday 05 February 2016 18:50:29 Sekhar Nori wrote: > > I checked that CONFIG_I2C is still enabled with davinci_all_defconfig, > > so that does not have to change. > > > > Signed-off-by: Arnd Bergmann <a...@arndb.de> > > Fixes: 45b146d746ea ("ARM: Davinci: Fix I2C build errors") > > Fixes: 22ca466847ad ("davinci: kconfig: select at24 eeprom for selected > > boards") > > This looks good to me. The #ifdefs in the middle of davinci_evm_init() > are an eyesore, but getting rid of the selects is a big plus. >
I agree on the eyesore. I had an earlier version using "if (IS_BUILTIN(CONFIG_I2C))" checks that was much nicer, but it didn't work because all the declarations in include/linux/i2c.h are hidden behind an #ifdef. I thought about sending a patch for that file too, but I think it has come up before and was nacked then. Arnd