leds: simatic-ipc-leds-gpio: Make simatic_ipc_led_gpio_table static
Subsystems (2)
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.
Reported-by kernel test robot <[email protected]>
Signed-off-by Hans de Goede <[email protected]>
---
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
@@ -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
Hi all,
Quoted 8 lines · Hans de Goede
simatic_ipc_led_gpio_tableis only used insidesimatic-ipc-leds-gpio.c, make it static.Reported-by kernel test robot <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
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@@ -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" ,