]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: use the generic 'gpio-line-names' property
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 29 Sep 2020 10:10:03 +0000 (12:10 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 30 Sep 2020 08:52:15 +0000 (10:52 +0200)
commitb0d1ff0b7fd7bb3d54a3d68eef440a445448adde
tree490a7dbfaada79999fd4a25397db505a31dc2792
parent4b1cf51da856c4acc9b97c237ec3715febcfd346
gpio: mockup: use the generic 'gpio-line-names' property

GPIO line names are currently created by the driver from the chip label.
We'll want to support custom formats for line names (for instance: to
name all lines the same) for user-space tests so create them in the
module init function and pass them to the driver using the standard
'gpio-line-names' property.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-mockup.c