OSDN Git Service

iio: proximity: sx9500: Add GPIO ACPI mapping table
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 26 Feb 2018 19:37:35 +0000 (21:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Mar 2018 15:11:27 +0000 (15:11 +0000)
commitb61d8e630a8577600813acb2d0ce43ced8e9d107
tree49378ff490c4c7d2f7e889db1c3daac7f098cf49
parentc0879ed6188789c6252e91cedabf46236cfa1d42
iio: proximity: sx9500: Add GPIO ACPI mapping table

In order to satisfy GPIO ACPI library requirements convert users of
gpiod_get_index() to correctly behave when there no mapping is provided
by firmware.

Here we add explicit mapping between _CRS GpioIo() resources and
their names used in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9500.c