gpiolib-acpi: Move acpi_dev_add_driver_gpios() et al to consumer.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Jul 2019 10:43:37 +0000 (13:43 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Jul 2019 22:59:19 +0000 (00:59 +0200)
commit2838bf941b120ec846a3903db13e319368d51b08
tree86b5dee2e09363d0605cd4592d70d75e75778cf0
parent77cb907abe6c4b399ad77f9b6c1d77d44a435de3
gpiolib-acpi: Move acpi_dev_add_driver_gpios() et al to consumer.h

The API, which belongs to GPIO library, is foreign to ACPI headers. Earlier
we moved out I²C out of the latter, and now it's time for
acpi_dev_add_driver_gpios() et al.

For time being the acpi_gpio_get_irq_resource() and acpi_dev_gpio_irq_get()
are left untouched as they need more thought about.

Note, it requires uninline acpi_dev_remove_driver_gpios() to keep purity of
consumer.h.

Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: Jie Yang <yang.jie@linux.intel.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org (moderated list:INTEL ASoC DRIVERS)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190730104337.21235-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c
include/linux/acpi.h
include/linux/gpio/consumer.h
sound/soc/intel/boards/bytcht_cx2072x.c
sound/soc/intel/boards/cht_bsw_max98090_ti.c
sound/soc/intel/boards/cht_bsw_rt5672.c