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>
This commit is contained in:
Родитель
ee551a1000
Коммит
f59c2576c1
|
@ -55,15 +55,7 @@ static struct attribute *iio_trig_dev_attrs[] = {
|
||||||
&dev_attr_name.attr,
|
&dev_attr_name.attr,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
ATTRIBUTE_GROUPS(iio_trig_dev);
|
||||||
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
|
|
||||||
};
|
|
||||||
|
|
||||||
int iio_trigger_register(struct iio_trigger *trig_info)
|
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 = {
|
static struct device_type iio_trig_type = {
|
||||||
.release = iio_trig_release,
|
.release = iio_trig_release,
|
||||||
.groups = iio_trig_attr_groups,
|
.groups = iio_trig_dev_groups,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void iio_trig_subirqmask(struct irq_data *d)
|
static void iio_trig_subirqmask(struct irq_data *d)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче