Home
last modified time | relevance | path

Searched refs:iio_attr (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/staging/iio/adc/
Dad7280a.c133 struct iio_dev_attr *iio_attr; member
634 struct iio_dev_attr *iio_attr; in ad7280_init_dev_attrs() local
638 iio_attr = &st->iio_attr[*cnt]; in ad7280_init_dev_attrs()
642 ret = ad7280_balance_switch_attr_init(iio_attr, sdev, addr, i); in ad7280_init_dev_attrs()
646 ad7280_attributes[*cnt] = &iio_attr->dev_attr.attr; in ad7280_init_dev_attrs()
649 iio_attr = &st->iio_attr[*cnt]; in ad7280_init_dev_attrs()
652 ret = ad7280_balance_timer_attr_init(iio_attr, sdev, addr, i); in ad7280_init_dev_attrs()
656 ad7280_attributes[*cnt] = &iio_attr->dev_attr.attr; in ad7280_init_dev_attrs()
669 st->iio_attr = devm_kcalloc(&st->spi->dev, 2, sizeof(*st->iio_attr) * in ad7280_attr_init()
672 if (!st->iio_attr) in ad7280_attr_init()
/Linux-v5.4/drivers/iio/
Dindustrialio-core.c1024 struct iio_dev_attr *iio_attr, *t; in __iio_add_chan_devattr() local
1026 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in __iio_add_chan_devattr()
1027 if (iio_attr == NULL) in __iio_add_chan_devattr()
1029 ret = __iio_device_attr_init(&iio_attr->dev_attr, in __iio_add_chan_devattr()
1034 iio_attr->c = chan; in __iio_add_chan_devattr()
1035 iio_attr->address = mask; in __iio_add_chan_devattr()
1038 iio_attr->dev_attr.attr.name) == 0) { in __iio_add_chan_devattr()
1045 list_add(&iio_attr->l, attr_list); in __iio_add_chan_devattr()
1050 __iio_device_attr_deinit(&iio_attr->dev_attr); in __iio_add_chan_devattr()
1052 kfree(iio_attr); in __iio_add_chan_devattr()
/Linux-v5.4/drivers/iio/adc/
Dhx711.c402 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in hx711_scale_available_show() local
403 int channel = iio_attr->address; in hx711_scale_available_show()
Dmxs-lradc-adc.c320 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in mxs_lradc_adc_show_scale_avail() local
323 ch = iio_attr->address; in mxs_lradc_adc_show_scale_avail()