summaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/core.c
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-10-23 17:40:36 +0200
committerHans de Goede <hdegoede@redhat.com>2021-11-16 10:56:53 +0100
commit79f960e29cfc87db324479ef982a3f97025328dc (patch)
treec6d108aad3d0bcdf7623b83876cca98064ad83b3 /drivers/platform/surface/aggregator/core.c
parentd477a907cba317cfa58a8c89c09454d3fced1964 (diff)
downloadlinux-79f960e29cfc87db324479ef982a3f97025328dc.tar.bz2
platform/x86: thinkpad_acpi: Convert platform driver to use dev_groups
Platform drivers have the option of having the platform core create and remove any needed sysfs attribute files. So take advantage of that and refactor the attributes management to avoid to register them "by hand". Also, due to some attributes are optionals, refactor the code and move the logic inside the "is_visible" callbacks of the attribute_group structures. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Len Baker <len.baker@gmx.com> Link: https://lore.kernel.org/r/20211023154036.6800-1-len.baker@gmx.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/surface/aggregator/core.c')
0 files changed, 0 insertions, 0 deletions