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

/linux-4.1.27/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 == NULL) 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()
589 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init()
940 kfree(st->iio_attr); ad7280_probe()
961 kfree(st->iio_attr); ad7280_remove()
H A Dmxs-lradc.c1010 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); mxs_lradc_show_scale_available() local
1013 iio_attr->address); mxs_lradc_show_scale_available()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-core.c722 struct iio_dev_attr *iio_attr, *t; __iio_add_chan_devattr() local
724 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); __iio_add_chan_devattr()
725 if (iio_attr == NULL) __iio_add_chan_devattr()
727 ret = __iio_device_attr_init(&iio_attr->dev_attr, __iio_add_chan_devattr()
732 iio_attr->c = chan; __iio_add_chan_devattr()
733 iio_attr->address = mask; list_for_each_entry()
736 iio_attr->dev_attr.attr.name) == 0) { list_for_each_entry()
743 list_add(&iio_attr->l, attr_list);
748 __iio_device_attr_deinit(&iio_attr->dev_attr);
750 kfree(iio_attr);

Completed in 161 milliseconds