On Mon 2019-01-07 08:34:36, Daniel Mack wrote: > The only user of this driver in mainline has now moved to DTS, so the pdata > code is no longer in use by anyone. Let's drop some dead code, and make the > driver depend on CONFIG_OF. > pavel@amd:/data/l/linux-next-32/arch/arm/mach-pxa$ grep -ri lt3593 . ./raumfeld.c:/* LT3593 controlled backlight */ ./raumfeld.c:static struct gpio_led raumfeld_lt3593_led = { ./raumfeld.c:static struct gpio_led_platform_data raumfeld_lt3593_platform_data = { ./raumfeld.c: .leds = &raumfeld_lt3593_led, ./raumfeld.c:static struct platform_device raumfeld_lt3593_device = { ./raumfeld.c: .name = "leds-lt3593", ./raumfeld.c: .platform_data = &raumfeld_lt3593_platform_data, ./raumfeld.c: * by an LT3593, earlier and later devices use PWM for that. */ ./raumfeld.c: platform_device_register(&raumfeld_lt3593_device); pavel@amd:/data/l/linux-next-32/arch/arm/mach-pxa$ That is today's -next. So... maybe your patch is a bit premature? Pavel > -static struct lt3593_led_data *lt3593_led_probe_pdata(struct device *dev) > -{ > - struct gpio_led_platform_data *pdata = dev_get_platdata(dev); > - const struct gpio_led *template = &pdata->leds[0]; -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature