]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: alienware-wmi: Move Lighting Control State
authorKurt Borja <kuurtb@gmail.com>
Sun, 5 Jan 2025 15:30:02 +0000 (10:30 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 9 Jan 2025 11:40:32 +0000 (13:40 +0200)
commit99675d25dc82479f513be9dffc98badd2954e0fb
tree18ef3dabc7280e759e9d8168a65c6730d1200025
parent2d0a368c34c0676657aaedd3aa641f3e5bf54e3a
platform/x86: alienware-wmi: Move Lighting Control State

Place Lighting Control State logic next to other attributes of the same
sysfs group.

While at it, rename:

store_control_state() -> lighting_control_state_store()
show_control_state() -> lighting_control_state_show()

Replace DEVICE_ATTR() with DEVICE_ATTR_RW() and do a general style
cleanup.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250105153019.19206-4-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/alienware-wmi.c