mfd: arizona: Remove use of codec build config #ifdefs
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 2 Oct 2015 12:29:14 +0000 (13:29 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 17:20:29 +0000 (17:20 +0000)
commitb61c1ec058dabdcbddad7436bb4c009a8fa65b02
treeb5e851f1a183bc840fc18cec18321d967d0ad81b
parentae05ea36d1c9bdc76a4539277d96f5bdf3d39f02
mfd: arizona: Remove use of codec build config #ifdefs

Remove the use of #ifdefs around each case statement of the chip ID
and type validation switches.

We must ensure that the contained code still compiles to nothing if
support for that codec was not built into the kernel, to prevent
creation of link references to missing functions. So the ifdefs are
replaced with a use of the IS_ENABLED() macro.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c
drivers/mfd/arizona-i2c.c
drivers/mfd/arizona-spi.c