Searched hist:"148 c2560c55b5d4a46849324498f4f0b14a8243d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mockup.c | diff 148c2560c55b5d4a46849324498f4f0b14a8243d Tue Sep 29 05:10:02 CDT 2020 Bartosz Golaszewski <bgolaszewski@baylibre.com> gpio: mockup: pass the chip label as device property
While we do check the "chip-name" property in probe(), we never actually use it. Let's pass the chip label to the driver using device properties as we'll want to allow users to define their own once dynamically created chips are supported.
The property is renamed to "chip-label" to not cause any confusion with the actual chip name which is of the form: "gpiochipX".
If the "chip-label" property is missing, let's do what most devices in drivers/gpio/ do and use dev_name().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
|