aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-12-01 21:57:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-12-03 15:22:29 -0500
commitf59c2576c12d4367ca4bdade0eb054b4558f9762 (patch)
treed7a3593c77e147df83f47df75f8250b579e52379
parentee551a10006f3728c231bbe9c30635ff53250dbc (diff)
iio:trigger: Convert to use ATTRIBUTE_GROUPS
Use new ATTRIBUTE_GROUPS macro to declare attribute groups. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/industrialio-trigger.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c
index 7ba2f002ffca..766fab24b720 100644
--- a/drivers/iio/industrialio-trigger.c
+++ b/drivers/iio/industrialio-trigger.c
@@ -55,15 +55,7 @@ static struct attribute *iio_trig_dev_attrs[] = {
55 &dev_attr_name.attr, 55 &dev_attr_name.attr,
56 NULL, 56 NULL,
57}; 57};
58 58ATTRIBUTE_GROUPS(iio_trig_dev);
59static struct attribute_group iio_trig_attr_group = {
60 .attrs = iio_trig_dev_attrs,
61};
62
63static const struct attribute_group *iio_trig_attr_groups[] = {
64 &iio_trig_attr_group,
65 NULL
66};
67 59
68int iio_trigger_register(struct iio_trigger *trig_info) 60int iio_trigger_register(struct iio_trigger *trig_info)
69{ 61{
@@ -403,7 +395,7 @@ static void iio_trig_release(struct device *device)
403 395
404static struct device_type iio_trig_type = { 396static struct device_type iio_trig_type = {
405 .release = iio_trig_release, 397 .release = iio_trig_release,
406 .groups = iio_trig_attr_groups, 398 .groups = iio_trig_dev_groups,
407}; 399};
408 400
409static void iio_trig_subirqmask(struct irq_data *d) 401static void iio_trig_subirqmask(struct irq_data *d)