diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-11-10 16:40:30 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-11-30 12:53:50 +0300 |
commit | 5870cff47bb6aeb9f9e073cbfcecd6f0f0d3035b (patch) | |
tree | d5efb77ed299a2e0a9e9914203272d58035ec74b /drivers/gpio/gpiolib.h | |
parent | 08be1a795de3bf9dab31affed5e495ff91a1744d (diff) | |
download | linux-5870cff47bb6aeb9f9e073cbfcecd6f0f0d3035b.tar.xz |
gpiolib: acpi: Move adev member to struct acpi_gpio_info
The further improvements are based on this change since
struct acpi_gpio_lookup is not available in some cases.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r-- | drivers/gpio/gpiolib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index af48322839c3..e8d0bfa57288 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -75,12 +75,14 @@ struct gpio_device { /** * struct acpi_gpio_info - ACPI GPIO specific information + * @adev: reference to ACPI device which consumes GPIO resource * @flags: GPIO initialization flags * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo * @polarity: interrupt polarity as provided by ACPI * @triggering: triggering type as provided by ACPI */ struct acpi_gpio_info { + struct acpi_device *adev; enum gpiod_flags flags; bool gpioint; int polarity; |