Searched refs:iio_attr (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/staging/iio/adc/
H A Dad7280a.c125 struct iio_dev_attr *iio_attr; member in struct:ad7280_state
550 st->iio_attr = kcalloc(2, sizeof(*st->iio_attr) * ad7280_attr_init()
553 if (!st->iio_attr) ad7280_attr_init()
559 st->iio_attr[cnt].address = ad7280_attr_init()
561 st->iio_attr[cnt].dev_attr.attr.mode = ad7280_attr_init()
563 st->iio_attr[cnt].dev_attr.show = ad7280_attr_init()
565 st->iio_attr[cnt].dev_attr.store = ad7280_attr_init()
567 st->iio_attr[cnt].dev_attr.attr.name = ad7280_attr_init()
573 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init()
575 st->iio_attr[cnt].address = ad7280_attr_init()
578 st->iio_attr[cnt].dev_attr.attr.mode = ad7280_attr_init()
580 st->iio_attr[cnt].dev_attr.show = ad7280_attr_init()
582 st->iio_attr[cnt].dev_attr.store = ad7280_attr_init()
584 st->iio_attr[cnt].dev_attr.attr.name = ad7280_attr_init()
590 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init()
942 kfree(st->iio_attr); ad7280_probe()
963 kfree(st->iio_attr); ad7280_remove()
H A Dmxs-lradc.c1021 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); mxs_lradc_show_scale_available() local
1024 iio_attr->address); mxs_lradc_show_scale_available()
/linux-4.4.14/drivers/iio/
H A Dindustrialio-core.c746 struct iio_dev_attr *iio_attr, *t; __iio_add_chan_devattr() local
748 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); __iio_add_chan_devattr()
749 if (iio_attr == NULL) __iio_add_chan_devattr()
751 ret = __iio_device_attr_init(&iio_attr->dev_attr, __iio_add_chan_devattr()
756 iio_attr->c = chan; __iio_add_chan_devattr()
757 iio_attr->address = mask; list_for_each_entry()
760 iio_attr->dev_attr.attr.name) == 0) { list_for_each_entry()
767 list_add(&iio_attr->l, attr_list);
772 __iio_device_attr_deinit(&iio_attr->dev_attr);
774 kfree(iio_attr);

Completed in 175 milliseconds