mfd: kempld: Use device core to create driver-specific device attributes
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Feb 2024 19:49:51 +0000 (21:49 +0200)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:15 +0000 (15:39 +0100)
commitb503627701c8e58955d78f04e59bdd02a1a1cfc4
treeb197dc09e97f64e50bbc8e0c1c57554d79a42a38
parent392654ad188b8b8e2b922ebd716e94e06ff59eb7
mfd: kempld: Use device core to create driver-specific device attributes

Instead of creating driver-specific device attributes with
sysfs_create_group() have device core do this by setting up dev_groups
pointer in the driver structure.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240223195113.880121-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/kempld-core.c