]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86: asus-wmi: fix TUF laptop RGB variant
authorLuke D. Jones <luke@ljones.dev>
Tue, 16 Jul 2024 01:11:30 +0000 (13:11 +1200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 16 Jul 2024 09:49:09 +0000 (12:49 +0300)
commitd8b17a364ec48239fccb65efe74bb485e79e6743
treeb82a079da40a5fe8775691b68ad402c7a467d534
parent182c6941c55347c735e70ffca77741cd000cbec7
platform/x86: asus-wmi: fix TUF laptop RGB variant

In kbd_rgb_mode_store the dev_get_drvdata() call was assuming the device
data was asus_wmi when it was actually led_classdev.

This patch corrects this by making the correct chain of calls to get the
asus_wmi driver data.

Fixes: ae834a549ec1 ("platform/x86: asus-wmi: add support variant of TUF RGB")
Tested-by: Denis Benato <benato.denis96@gmail.com>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240716011130.17464-2-luke@ljones.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c