summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/tsc200x-core.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2023-07-29 03:51:30 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-09-07 00:29:03 +0300
commit97f2bedb620c17c41fee2a7758dddbfcbaa0812b (patch)
tree3714489cb295a072bb5eaf5b336919d018c9850a /drivers/input/touchscreen/tsc200x-core.h
parent6cc3ecfded342cb56a8ebf5de3541b2d9cc41017 (diff)
downloadlinux-97f2bedb620c17c41fee2a7758dddbfcbaa0812b.tar.xz
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.h1
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,