Skip to content

Commit 9ddf404

Browse files
andy-shevlag-linaro
authored andcommitted
leds: tca6507: Don't use fixed GPIO base
First of all, the fixed GPIO base is source of troubles and it doesn't scale. Second, there is no in-kernel user of this base, so drop it. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent fc8e107 commit 9ddf404

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/leds/leds-tca6507.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@
9292

9393
struct tca6507_platform_data {
9494
struct led_platform_data leds;
95-
#ifdef CONFIG_GPIOLIB
96-
int gpio_base;
97-
#endif
9895
};
9996

10097
#define TCA6507_MAKE_GPIO 1
@@ -636,7 +633,7 @@ static int tca6507_probe_gpios(struct device *dev,
636633

637634
tca->gpio.label = "gpio-tca6507";
638635
tca->gpio.ngpio = gpios;
639-
tca->gpio.base = pdata->gpio_base;
636+
tca->gpio.base = -1;
640637
tca->gpio.owner = THIS_MODULE;
641638
tca->gpio.direction_output = tca6507_gpio_direction_output;
642639
tca->gpio.set = tca6507_gpio_set_value;
@@ -715,9 +712,6 @@ tca6507_led_dt_init(struct device *dev)
715712

716713
pdata->leds.leds = tca_leds;
717714
pdata->leds.num_leds = NUM_LEDS;
718-
#ifdef CONFIG_GPIOLIB
719-
pdata->gpio_base = -1;
720-
#endif
721715

722716
return pdata;
723717
}

0 commit comments

Comments
 (0)