diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-12-02 02:57:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-03 20:22:29 +0000 |
commit | f59c2576c12d4367ca4bdade0eb054b4558f9762 (patch) | |
tree | d7a3593c77e147df83f47df75f8250b579e52379 /drivers/iio/industrialio-trigger.c | |
parent | ee551a10006f3728c231bbe9c30635ff53250dbc (diff) | |
download | linux-f59c2576c12d4367ca4bdade0eb054b4558f9762.tar.gz linux-f59c2576c12d4367ca4bdade0eb054b4558f9762.tar.bz2 linux-f59c2576c12d4367ca4bdade0eb054b4558f9762.zip |
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>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
-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[] = { &dev_attr_name.attr, NULL, }; - -static struct attribute_group iio_trig_attr_group = { - .attrs = iio_trig_dev_attrs, -}; - -static const struct attribute_group *iio_trig_attr_groups[] = { - &iio_trig_attr_group, - NULL -}; +ATTRIBUTE_GROUPS(iio_trig_dev); int iio_trigger_register(struct iio_trigger *trig_info) { @@ -403,7 +395,7 @@ static void iio_trig_release(struct device *device) static struct device_type iio_trig_type = { .release = iio_trig_release, - .groups = iio_trig_attr_groups, + .groups = iio_trig_dev_groups, }; static void iio_trig_subirqmask(struct irq_data *d) |