[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5475182.6SLDQGvbZt@wuerfel>
Date: Fri, 05 Feb 2016 15:15:16 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Sekhar Nori <nsekhar@...com>,
Kevin Hilman <khilman@...prootsystems.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/4] ARM: davinci: make I2C support optional
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 <arnd@...db.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
Powered by blists - more mailing lists