Lines Matching +full:gpio +full:- +full:leds
1 // SPDX-License-Identifier: GPL-2.0
3 * Siemens SIMATIC IPC driver for GPIO based LEDs
11 #include <linux/gpio/machine.h>
12 #include <linux/gpio/consumer.h>
13 #include <linux/leds.h>
16 #include <linux/platform_data/x86/simatic-ipc-base.h>
18 #include "simatic-ipc-leds-gpio.h"
23 { .name = "red:" LED_FUNCTION_STATUS "-1" },
24 { .name = "green:" LED_FUNCTION_STATUS "-1" },
25 { .name = "red:" LED_FUNCTION_STATUS "-2" },
26 { .name = "green:" LED_FUNCTION_STATUS "-2" },
27 { .name = "red:" LED_FUNCTION_STATUS "-3" },
28 { .name = "green:" LED_FUNCTION_STATUS "-3" },
33 .leds = simatic_ipc_gpio_leds,
52 const struct simatic_ipc_platform *plat = pdev->dev.platform_data; in simatic_ipc_leds_gpio_probe()
53 struct device *dev = &pdev->dev; in simatic_ipc_leds_gpio_probe()
57 switch (plat->devmode) { in simatic_ipc_leds_gpio_probe()
63 return -ENODEV; in simatic_ipc_leds_gpio_probe()
68 "leds-gpio", PLATFORM_DEVID_NONE, NULL, 0, in simatic_ipc_leds_gpio_probe()
79 table_extra->dev_id = dev_name(dev); in simatic_ipc_leds_gpio_probe()
107 MODULE_SOFTDEP("pre: platform:leds-gpio");