aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-appletb-kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-appletb-kbd.c')
-rw-r--r--drivers/hid/hid-appletb-kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c
index ef51b2c06872..6f251b284018 100644
--- a/drivers/hid/hid-appletb-kbd.c
+++ b/drivers/hid/hid-appletb-kbd.c
@@ -166,7 +166,7 @@ static int appletb_tb_key_to_slot(unsigned int code)
static void appletb_inactivity_timer(struct timer_list *t)
{
- struct appletb_kbd *kbd = from_timer(kbd, t, inactivity_timer);
+ struct appletb_kbd *kbd = timer_container_of(kbd, t, inactivity_timer);
if (kbd->backlight_dev && appletb_tb_autodim) {
if (!kbd->has_dimmed) {