WSL2-Linux-Kernel/drivers/video/backlight
Javier Martinez Canillas bb82250fc4 backlight: da9052: Fix module autoload
The driver has a platform device ID table with multiple device entries,
each setting a different register address in its driver_data to control
the WLED brightness.

But the driver doesn't export these as aliases with MODULE_DEVICE_TABLE()
when the driver is built as a module, instead it just has a single alias
using MODULE_ALIAS("platform:da9052-backlight"). That is clearly wrong
since there isn't a "da9052-backlight" in the platform device ID table,
so if that device name is used, the device won't even match the driver.

So instead of having a wrong alias, export the ones in the dev ID table.

Before this patch:

$ modinfo drivers/video/backlight/da9052_bl.ko | grep alias
alias:          platform:da9052-backlight

After this patch:

$ modinfo drivers/video/backlight/da9052_bl.ko | grep alias
alias:          platform:da9052-wled3
alias:          platform:da9052-wled2
alias:          platform:da9052-wled1

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2017-01-04 11:37:58 +00:00
..
88pm860x_bl.c backlight: 88pm860x_bl: Add missing of_node_put 2015-10-15 12:06:21 +01:00
Kconfig backlight: pm8941-wled: Move PM8941 WLED driver to backlight 2015-08-25 08:41:56 +01:00
Makefile backlight: pm8941-wled: Move PM8941 WLED driver to backlight 2015-08-25 08:41:56 +01:00
aat2870_bl.c
adp5520_bl.c backlight: adp5520: Fix error handling in adp5520_bl_probe() 2017-01-04 11:37:31 +00:00
adp8860_bl.c backlight: adp8860: Fix another uninitialized variable use 2016-01-11 07:58:43 +00:00
adp8870_bl.c backlight: adp88x0: Fix uninitialized variable use 2016-01-11 05:56:12 +00:00
ams369fg06.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
apple_bl.c
as3711_bl.c
backlight.c video / backlight: remove the backlight_device_registered API 2016-05-04 23:41:14 +02:00
bd6107.c
corgi_lcd.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
cr_bllcd.c
da903x_bl.c
da9052_bl.c backlight: da9052: Fix module autoload 2017-01-04 11:37:58 +00:00
ep93xx_bl.c
generic_bl.c
gpio_backlight.c backlight: gpio-backlight: Use default-on on GPIO request 2016-01-11 07:58:35 +00:00
hp680_bl.c
hx8357.c
ili922x.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ili9320.c
ili9320.h
ipaq_micro_bl.c
jornada720_bl.c
jornada720_lcd.c
kb3886_bl.c
l4f00242t03.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
lcd.c backlight: lcd: Fix race condition during register 2017-01-04 11:37:31 +00:00
ld9040.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ld9040_gamma.h
lm3533_bl.c
lm3630a_bl.c backlight: lm3630a: explicitly apply PWM config extracted from pwm_args 2016-05-17 14:45:05 +02:00
lm3639_bl.c
lms283gf05.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
lms501kf03.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
locomolcd.c
lp855x_bl.c backlight: lp855x: Add enable regulator 2016-06-29 10:06:21 +01:00
lp8788_bl.c backlight: lp8788: Explicitly apply PWM config extracted from pwm_args 2016-05-17 14:45:04 +02:00
ltv350qv.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ltv350qv.h
lv5207lp.c
max8925_bl.c
omap1_bl.c
ot200_bl.c
pandora_bl.c
pcf50633-backlight.c
platform_lcd.c
pm8941-wled.c backlight: pm8941-wled: Add default-brightness property 2015-10-30 18:47:51 +00:00
pwm_bl.c backlight: pwm_bl: Check the PWM state for initial backlight power state 2017-01-04 11:37:38 +00:00
s6e63m0.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
s6e63m0_gamma.h
sky81452-backlight.c backlight: sky81452: Remove unneeded use of IS_ERR_VALUE() macro 2015-08-25 08:43:21 +01:00
tdo24m.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
tosa_bl.c backlight-tosa: Delete unnecessary assignment for the field "owner" 2016-10-06 09:27:25 +01:00
tosa_lcd.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
tps65217_bl.c backlight: tps65217_bl: Add MODULE_DEVICE_TABLE 2016-01-11 06:36:35 +00:00
vgg2432a4.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
wm831x_bl.c