platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:57:01 +0000 (21:57 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:21:36 +0000 (10:21 +0100)
commitc67957464e1e4934588d2672ef6189f5d790fb67
tree62968871e454d72c8b78fc2caf03721580c0976d
parent65c7713a5079278eee3146092fc4df2627b42604
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 <pobrn@protonmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-26-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c