OSDN Git Service

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)
commit582be05ea42aca26cb640d1a82d7ec860e577fb5
tree490a7dbfaada79999fd4a25397db505a31dc2792
parent148c2560c55b5d4a46849324498f4f0b14a8243d
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