projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7318b61
)
leds: simatic-ipc-leds-gpio: Make simatic_ipc_led_gpio_table static
author
Hans de Goede
<hdegoede@redhat.com>
Sat, 10 Sep 2022 08:58:36 +0000
(10:58 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Sat, 10 Sep 2022 12:16:16 +0000
(14:16 +0200)
simatic_ipc_led_gpio_table is only used inside simatic-ipc-leds-gpio.c,
make it static.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link:
https://lore.kernel.org/r/20220910085836.84962-1-hdegoede@redhat.com
drivers/leds/simple/simatic-ipc-leds-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/leds/simple/simatic-ipc-leds-gpio.c
b/drivers/leds/simple/simatic-ipc-leds-gpio.c
index 0d73dcbeec2de1bdbefc353b84add4504cca7e24..b9eeb8702df0c345b5df53c1cb06948859528db3 100644
(file)
--- a/
drivers/leds/simple/simatic-ipc-leds-gpio.c
+++ b/
drivers/leds/simple/simatic-ipc-leds-gpio.c
@@
-15,7
+15,7
@@
#include <linux/platform_device.h>
#include <linux/platform_data/x86/simatic-ipc-base.h>
-struct gpiod_lookup_table *simatic_ipc_led_gpio_table;
+st
atic st
ruct gpiod_lookup_table *simatic_ipc_led_gpio_table;
static struct gpiod_lookup_table simatic_ipc_led_gpio_table_127e = {
.dev_id = "leds-gpio",