Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: as3722: convert PINCTRL_AS3722 from bool to tristate

The Kconfig currently controlling compilation of this code is:

config PINCTRL_AS3722
bool "Pinctrl and GPIO driver for ams AS3722 PMIC"

...meaning that it currently is not being built as a module by anyone.

During an audit for non-modular drivers using modular infrastructure
this driver showed up.

But rather than demodularize it, Laxman indicated that it would be
prefereable to instead convert the driver option to tristate.

This does that, and confirms that it will compile and modpost as
such. However, since I do not have the hardware to confirm that
no new runtime issues exist when modular, that remains untested.

Cc: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Paul Gortmaker and committed by
Linus Walleij
9385f35d 767b8ce3

+1 -1
+1 -1
drivers/pinctrl/Kconfig
··· 35 35 machine and arch are selected to build. 36 36 37 37 config PINCTRL_AS3722 38 - bool "Pinctrl and GPIO driver for ams AS3722 PMIC" 38 + tristate "Pinctrl and GPIO driver for ams AS3722 PMIC" 39 39 depends on MFD_AS3722 && GPIOLIB 40 40 select PINMUX 41 41 select GENERIC_PINCONF