diff options
author | Hans de Goede | 2018-12-31 21:55:21 +0100 |
---|---|---|
committer | Linus Walleij | 2019-01-10 16:22:37 +0100 |
commit | 72893f0c6bd399ce84e3c1c9fc69d234fe37d098 (patch) | |
tree | 952cdaaae1212b03a13648d29533455f379bdb29 /drivers/uio | |
parent | gpio: mvebu: implement get_direction (diff) | |
download | kernel-qcow2-linux-72893f0c6bd399ce84e3c1c9fc69d234fe37d098.tar.gz kernel-qcow2-linux-72893f0c6bd399ce84e3c1c9fc69d234fe37d098.tar.xz kernel-qcow2-linux-72893f0c6bd399ce84e3c1c9fc69d234fe37d098.zip |
gpiolib-acpi: Preserve non direction flags when updating gpiod_flags
__acpi_gpio_update_gpiod_flags purpose is to make the gpiod_flags used
when requesting a GPIO match the restrictions from the ACPI resource,
as stored in acpi_gpio_info.flags.
But acpi_gpio_info.flags only contains direction info, and the
requester may have passed in special non-direction flags like
GPIOD_FLAGS_BIT_NONEXCLUSIVE, which we currently clobber.
This commit modifies __acpi_gpio_update_gpiod_flags to preserve these
special flags, so that a requested of an ACPI GPIO can e.g. pass
GPIOD_FLAGS_BIT_NONEXCLUSIV and have it work as intended.
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions