]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: intel_soc_pmic_bxtwc: Switch to use ATTRIBUTE_GROUPS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Oct 2024 10:49:51 +0000 (13:49 +0300)
committerLee Jones <lee@kernel.org>
Thu, 31 Oct 2024 14:58:50 +0000 (14:58 +0000)
commit1f9e418aafc6ee52aad25b85f1e799f031f8de67
tree80c8fb92eac2aab695f17281c50d95321230fae4
parentf2be0c3a9584b1a28c06692d4fc52a8a3586c6ab
mfd: intel_soc_pmic_bxtwc: Switch to use ATTRIBUTE_GROUPS()

Embrace ATTRIBUTE_GROUPS() to avoid boiler plate code.
While at it, move DEVICE_ATTR_ADMIN_RW() closer to the callbacks.

This should not introduce any functional changes.

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