diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-07-28 17:51:30 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-09-06 14:29:03 -0700 |
commit | 97f2bedb620c17c41fee2a7758dddbfcbaa0812b (patch) | |
tree | 3714489cb295a072bb5eaf5b336919d018c9850a /drivers/input/touchscreen/tsc200x-core.h | |
parent | 6cc3ecfded342cb56a8ebf5de3541b2d9cc41017 (diff) |
Input: tsc2004/5 - 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230729005133.1095051-21-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/tsc200x-core.h')
-rw-r--r-- | drivers/input/touchscreen/tsc200x-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/tsc200x-core.h b/drivers/input/touchscreen/tsc200x-core.h index 4ded34425b21..37de91efd78e 100644 --- a/drivers/input/touchscreen/tsc200x-core.h +++ b/drivers/input/touchscreen/tsc200x-core.h @@ -70,6 +70,7 @@ extern const struct regmap_config tsc200x_regmap_config; extern const struct dev_pm_ops tsc200x_pm_ops; +extern const struct attribute_group *tsc200x_groups[]; int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id, struct regmap *regmap, |