platform/x86/intel/wmi: thunderbolt: Use dev_groups callback
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Tue, 27 Sep 2022 13:56:12 +0000 (19:26 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 27 Sep 2022 14:01:44 +0000 (16:01 +0200)
commit4e3d731ba79e9d1bcbda668be7c3865dd02fddeb
treec6cb9d5923486bc60bbef3eb74df14adbe0daba8
parentb37fe34c83099ba5105115f8287c5546af1f0a05
platform/x86/intel/wmi: thunderbolt: Use dev_groups callback

Use .dev_groups callback instead of manual sysfs registration.
Remove .probe and .remove callbacks as they become dummy after
using .dev_groups.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20220927135612.1602491-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/wmi/thunderbolt.c