summaryrefslogtreecommitdiff
path: root/drivers/input/misc/adxl34x-i2c.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-06-10 19:42:57 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-06-11 21:17:44 +0300
commit6f7e4f81f738ac765318c54097a6235203073049 (patch)
tree7a67d29abb024d2345a12055b0557cb7364a399c /drivers/input/misc/adxl34x-i2c.c
parente17fb91cd4cde13001dc75ad99a378ab28dd44df (diff)
downloadlinux-6f7e4f81f738ac765318c54097a6235203073049.tar.xz
Input: adxl34x - 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. Reviewed-by: Nuno Sa <nuno.sa@analog.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Link: https://lore.kernel.org/r/20240610164301.1048482-1-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/adxl34x-i2c.c')
-rw-r--r--drivers/input/misc/adxl34x-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c
index d4014e367c77..7531c7b2d657 100644
--- a/drivers/input/misc/adxl34x-i2c.c
+++ b/drivers/input/misc/adxl34x-i2c.c
@@ -132,6 +132,7 @@ MODULE_DEVICE_TABLE(of, adxl34x_of_id);
static struct i2c_driver adxl34x_driver = {
.driver = {
.name = "adxl34x",
+ .dev_groups = adxl34x_groups,
.pm = pm_sleep_ptr(&adxl34x_pm),
.of_match_table = adxl34x_of_id,
},