mirror of https://github.com/torvalds/linux.git
In all cases in which a struct acpi_driver is used for binding a driver to an ACPI device object, a corresponding platform device is created by the ACPI core and that device is regarded as a proper representation of underlying hardware. Accordingly, a struct platform_driver should be used by driver code to bind to that device. There are multiple reasons why drivers should not bind directly to ACPI device objects [1]. Overall, it is better to bind drivers to platform devices than to their ACPI companions, so convert the Apple Backlight ACPI driver to a platform one. While this is not expected to alter functionality, it changes sysfs layout and so it will be visible to user space. Link: https://lore.kernel.org/all/2396510.ElGaqSPkdT@rafael.j.wysocki/ [1] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Link: https://patch.msgid.link/5084777.GXAFRqVoOG@rafael.j.wysocki Signed-off-by: Lee Jones <lee@kernel.org> |
||
|---|---|---|
| .. | ||
| 88pm860x_bl.c | ||
| Kconfig | ||
| Makefile | ||
| aat2870_bl.c | ||
| adp5520_bl.c | ||
| adp8860_bl.c | ||
| adp8870_bl.c | ||
| ams369fg06.c | ||
| apple_bl.c | ||
| apple_dwi_bl.c | ||
| arcxcnn_bl.c | ||
| as3711_bl.c | ||
| aw99706.c | ||
| backlight.c | ||
| bd6107.c | ||
| cgbc_bl.c | ||
| corgi_lcd.c | ||
| da903x_bl.c | ||
| da9052_bl.c | ||
| ep93xx_bl.c | ||
| gpio_backlight.c | ||
| hp680_bl.c | ||
| hx8357.c | ||
| ili922x.c | ||
| ili9320.c | ||
| ili9320.h | ||
| ipaq_micro_bl.c | ||
| jornada720_bl.c | ||
| jornada720_lcd.c | ||
| kb3886_bl.c | ||
| ktd253-backlight.c | ||
| ktd2801-backlight.c | ||
| ktz8866.c | ||
| l4f00242t03.c | ||
| lcd.c | ||
| led_bl.c | ||
| lm3509_bl.c | ||
| lm3533_bl.c | ||
| lm3630a_bl.c | ||
| lm3639_bl.c | ||
| lms283gf05.c | ||
| lms501kf03.c | ||
| locomolcd.c | ||
| lp855x_bl.c | ||
| lp8788_bl.c | ||
| ltv350qv.c | ||
| ltv350qv.h | ||
| lv5207lp.c | ||
| max8925_bl.c | ||
| mp3309c.c | ||
| mt6370-backlight.c | ||
| omap1_bl.c | ||
| otm3225a.c | ||
| pandora_bl.c | ||
| platform_lcd.c | ||
| pwm_bl.c | ||
| qcom-wled.c | ||
| rave-sp-backlight.c | ||
| rt4831-backlight.c | ||
| sky81452-backlight.c | ||
| tdo24m.c | ||
| tps65217_bl.c | ||
| vgg2432a4.c | ||
| wm831x_bl.c | ||