Lines Matching refs:iio_attr
1182 struct iio_dev_attr *iio_attr, *t; in __iio_add_chan_devattr() local
1184 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in __iio_add_chan_devattr()
1185 if (iio_attr == NULL) in __iio_add_chan_devattr()
1187 ret = __iio_device_attr_init(&iio_attr->dev_attr, in __iio_add_chan_devattr()
1192 iio_attr->c = chan; in __iio_add_chan_devattr()
1193 iio_attr->address = mask; in __iio_add_chan_devattr()
1194 iio_attr->buffer = buffer; in __iio_add_chan_devattr()
1197 iio_attr->dev_attr.attr.name) == 0) { in __iio_add_chan_devattr()
1204 list_add(&iio_attr->l, attr_list); in __iio_add_chan_devattr()
1209 __iio_device_attr_deinit(&iio_attr->dev_attr); in __iio_add_chan_devattr()
1211 kfree(iio_attr); in __iio_add_chan_devattr()