Searched refs:iio_attr (Results 1 – 5 of 5) sorted by relevance
1167 struct iio_dev_attr *iio_attr, *t; in __iio_add_chan_devattr() local1169 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in __iio_add_chan_devattr()1170 if (iio_attr == NULL) in __iio_add_chan_devattr()1172 ret = __iio_device_attr_init(&iio_attr->dev_attr, in __iio_add_chan_devattr()1177 iio_attr->c = chan; in __iio_add_chan_devattr()1178 iio_attr->address = mask; in __iio_add_chan_devattr()1179 iio_attr->buffer = buffer; in __iio_add_chan_devattr()1182 iio_attr->dev_attr.attr.name) == 0) { in __iio_add_chan_devattr()1189 list_add(&iio_attr->l, attr_list); in __iio_add_chan_devattr()1194 __iio_device_attr_deinit(&iio_attr->dev_attr); in __iio_add_chan_devattr()[all …]
1479 struct iio_dev_attr *iio_attr; in iio_buffer_wrap_attr() local1481 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in iio_buffer_wrap_attr()1482 if (!iio_attr) in iio_buffer_wrap_attr()1485 iio_attr->buffer = buffer; in iio_buffer_wrap_attr()1486 memcpy(&iio_attr->dev_attr, dattr, sizeof(iio_attr->dev_attr)); in iio_buffer_wrap_attr()1487 iio_attr->dev_attr.attr.name = kstrdup_const(attr->name, GFP_KERNEL); in iio_buffer_wrap_attr()1488 if (!iio_attr->dev_attr.attr.name) { in iio_buffer_wrap_attr()1489 kfree(iio_attr); in iio_buffer_wrap_attr()1493 sysfs_attr_init(&iio_attr->dev_attr.attr); in iio_buffer_wrap_attr()1495 list_add(&iio_attr->l, &buffer->buffer_attr_list); in iio_buffer_wrap_attr()[all …]
386 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in hx711_scale_available_show() local387 int channel = iio_attr->address; in hx711_scale_available_show()
230 struct iio_dev_attr *iio_attr = to_iio_dev_attr(devattr); in max11410_notch_en_show() local238 switch (iio_attr->address) { in max11410_notch_en_show()259 struct iio_dev_attr *iio_attr = to_iio_dev_attr(devattr); in max11410_notch_en_store() local270 switch (iio_attr->address) { in max11410_notch_en_store()
321 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in mxs_lradc_adc_show_scale_avail() local324 ch = iio_attr->address; in mxs_lradc_adc_show_scale_avail()