|
@@ -382,6 +382,11 @@ static int __init hp_wmi_input_setup(void)
|
|
case KE_SW:
|
|
case KE_SW:
|
|
set_bit(EV_SW, hp_wmi_input_dev->evbit);
|
|
set_bit(EV_SW, hp_wmi_input_dev->evbit);
|
|
set_bit(key->keycode, hp_wmi_input_dev->swbit);
|
|
set_bit(key->keycode, hp_wmi_input_dev->swbit);
|
|
|
|
+
|
|
|
|
+ /* Set initial dock state */
|
|
|
|
+ input_report_switch(hp_wmi_input_dev, key->keycode,
|
|
|
|
+ hp_wmi_dock_state());
|
|
|
|
+ input_sync(hp_wmi_input_dev);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|