Skip to contentSkip to conversation

leds: simatic-ipc-leds-gpio: Make simatic_ipc_led_gpio_table static

PATCH In review Hans de Goede 1 participant 2 messages Sep 10, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: simatic-ipc-leds-gpio: Make simatic_ipc_led_gpio_table static

simatic_ipc_led_gpio_table is only used inside simatic-ipc-leds-gpio.c, make it static.

---
Note since this is a fix to a patch which I merged through the pdx86 tree I plan to merge this today through the pdx86 tree as well.

---
 drivers/leds/simple/simatic-ipc-leds-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/simple/simatic-ipc-leds-gpio.c +1 -1
index 0d73dcbeec2d..b9eeb8702df0 100644
@@ -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;
+static struct gpiod_lookup_table *simatic_ipc_led_gpio_table;
 
 static struct gpiod_lookup_table simatic_ipc_led_gpio_table_127e = {
 	.dev_id = "leds-gpio",
Signature · 1 line
2.37.2
#1 lore raw

Hi all,

Quoted 8 lines · Hans de Goede

simatic_ipc_led_gpio_table is only used inside simatic-ipc-leds-gpio.c, make it static.

---
Note since this is a fix to a patch which I merged through the pdx86 tree I plan to merge this today through the pdx86 tree as well.

I've added this to my review-hans (soon to be for-next) branch now.

Regards,

Hans

Quoted 17 lines
---
 drivers/leds/simple/simatic-ipc-leds-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/simple/simatic-ipc-leds-gpio.c +1 -1
index 0d73dcbeec2d..b9eeb8702df0 100644
@@ -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;
+static struct gpiod_lookup_table *simatic_ipc_led_gpio_table;
 
 static struct gpiod_lookup_table simatic_ipc_led_gpio_table_127e = {
 	.dev_id = "leds-gpio",