mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
platform/x86: lenovo-yogabook: Set default keyboard backligh brightness on probe()
[ Upstream commit9e6380d657] Set default keyboard backlight brightness on probe(), this fixes the backlight being off after a rmmod + modprobe. Fixes:c0549b72d9("platform/x86: lenovo-yogabook-wmi: Add driver for Lenovo Yoga Book") Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230430165807.472798-5-hdegoede@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fa177f7011
commit
3a080e1b11
@@ -295,6 +295,9 @@ static int yogabook_wmi_probe(struct wmi_device *wdev, const void *context)
|
|||||||
}
|
}
|
||||||
data->backside_hall_irq = r;
|
data->backside_hall_irq = r;
|
||||||
|
|
||||||
|
/* Set default brightness before enabling the IRQ */
|
||||||
|
yogabook_wmi_set_kbd_backlight(data->wdev, YB_KBD_BL_DEFAULT);
|
||||||
|
|
||||||
r = request_irq(data->backside_hall_irq, yogabook_backside_hall_irq,
|
r = request_irq(data->backside_hall_irq, yogabook_backside_hall_irq,
|
||||||
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||||
"backside_hall_sw", data);
|
"backside_hall_sw", data);
|
||||||
|
|||||||
Reference in New Issue
Block a user