Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Jonathan Cameron
f59c2576 ee551a10

+2 -10
+2 -10
drivers/iio/industrialio-trigger.c
··· 55 55 &dev_attr_name.attr, 56 56 NULL, 57 57 }; 58 - 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 - }; 58 + ATTRIBUTE_GROUPS(iio_trig_dev); 67 59 68 60 int iio_trigger_register(struct iio_trigger *trig_info) 69 61 { ··· 395 403 396 404 static struct device_type iio_trig_type = { 397 405 .release = iio_trig_release, 398 - .groups = iio_trig_attr_groups, 406 + .groups = iio_trig_dev_groups, 399 407 }; 400 408 401 409 static void iio_trig_subirqmask(struct irq_data *d)