Commit 9ddf4043 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231002135629.2605462-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent fc8e107e
...@@ -92,9 +92,6 @@ ...@@ -92,9 +92,6 @@
struct tca6507_platform_data { struct tca6507_platform_data {
struct led_platform_data leds; struct led_platform_data leds;
#ifdef CONFIG_GPIOLIB
int gpio_base;
#endif
}; };
#define TCA6507_MAKE_GPIO 1 #define TCA6507_MAKE_GPIO 1
...@@ -636,7 +633,7 @@ static int tca6507_probe_gpios(struct device *dev, ...@@ -636,7 +633,7 @@ static int tca6507_probe_gpios(struct device *dev,
tca->gpio.label = "gpio-tca6507"; tca->gpio.label = "gpio-tca6507";
tca->gpio.ngpio = gpios; tca->gpio.ngpio = gpios;
tca->gpio.base = pdata->gpio_base; tca->gpio.base = -1;
tca->gpio.owner = THIS_MODULE; tca->gpio.owner = THIS_MODULE;
tca->gpio.direction_output = tca6507_gpio_direction_output; tca->gpio.direction_output = tca6507_gpio_direction_output;
tca->gpio.set = tca6507_gpio_set_value; tca->gpio.set = tca6507_gpio_set_value;
...@@ -715,9 +712,6 @@ tca6507_led_dt_init(struct device *dev) ...@@ -715,9 +712,6 @@ tca6507_led_dt_init(struct device *dev)
pdata->leds.leds = tca_leds; pdata->leds.leds = tca_leds;
pdata->leds.num_leds = NUM_LEDS; pdata->leds.num_leds = NUM_LEDS;
#ifdef CONFIG_GPIOLIB
pdata->gpio_base = -1;
#endif
return pdata; return pdata;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment