platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs
PATCH v3 25/29 platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs
Consumers can determine if the value of an attribute changed much more easily if changes are broadcast using sysfs_notify(), so utilize it.
Signed-off-by Barnabás Pőcze <[email protected]>
Reviewed-by Hans de Goede <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
drivers/platform/x86/ideapad-laptop.c +1 -0
@@ -1224,6 +1224,7 @@ static void ideapad_sync_touchpad_state(struct ideapad_private *priv)*/ i8042_command (¶m, value ?I8042_CMD_AUX_ENABLE :I8042_CMD_AUX_DISABLE );ideapad_input_report (priv, value ?67 :66 ); +sysfs_notify (&priv->platform_device->dev.kobj,NULL ,"touchpad" ); } }
Signature · 1 line
2.30.0