Files
linux/drivers/gpio
Alexandre Courbot ad824783fb gpio: better lookup method for platform GPIOs
Change the format of the platform GPIO lookup tables to make them less
confusing and improve lookup efficiency.

The previous format was a single linked-list that required to compare
the device name and function ID of every single GPIO defined for each
lookup. Switch that to a list of per-device tables, so that the lookup
can be done in two steps, omitting the GPIOs that are not relevant for a
particular device.

The matching rules are now defined as follows:
- The device name must match *exactly*, and can be NULL for GPIOs not
  assigned to a particular device,
- If the function ID in the lookup table is NULL, the con_id argument of
  gpiod_get() will not be used for lookup. However, if it is defined, it
  must match exactly.
- The index must always match.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-12-09 14:05:51 +01:00
..
2013-10-29 18:26:14 -07:00
2012-11-28 11:39:59 -08:00
2013-12-04 14:48:17 +01:00
2011-06-06 10:10:11 -06:00
2013-08-16 15:24:35 +02:00
2012-11-28 11:39:33 -08:00
2013-12-09 14:04:37 +01:00
2013-07-21 18:14:20 +02:00
2013-12-09 14:04:37 +01:00
2013-08-16 15:24:35 +02:00
2013-12-09 14:04:37 +01:00
2013-08-16 15:24:35 +02:00
2012-11-28 11:39:59 -08:00
2013-06-17 07:47:33 +02:00
2013-12-03 11:26:08 +01:00
2013-12-03 11:26:08 +01:00