diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-01 21:57:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-03 15:22:29 -0500 |
commit | f59c2576c12d4367ca4bdade0eb054b4558f9762 (patch) | |
tree | d7a3593c77e147df83f47df75f8250b579e52379 | |
parent | ee551a10006f3728c231bbe9c30635ff53250dbc (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.c | 12 |
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 | 58 | ATTRIBUTE_GROUPS(iio_trig_dev); | |
59 | static struct attribute_group iio_trig_attr_group = { | ||
60 | .attrs = iio_trig_dev_attrs, | ||
61 | }; | ||
62 | |||
63 | static const struct attribute_group *iio_trig_attr_groups[] = { | ||
64 | &iio_trig_attr_group, | ||
65 | NULL | ||
66 | }; | ||
67 | 59 | ||
68 | int iio_trigger_register(struct iio_trigger *trig_info) | 60 | int iio_trigger_register(struct iio_trigger *trig_info) |
69 | { | 61 | { |
@@ -403,7 +395,7 @@ static void iio_trig_release(struct device *device) | |||
403 | 395 | ||
404 | static struct device_type iio_trig_type = { | 396 | static 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 | ||
409 | static void iio_trig_subirqmask(struct irq_data *d) | 401 | static void iio_trig_subirqmask(struct irq_data *d) |