Lines Matching refs:dev

147 	struct device		*dev;  member
189 dev_err(adc->dev, "Invalid data:0x%x\n", *data); in adc5_read_voltage_data()
193 dev_dbg(adc->dev, "voltage raw code:0x%x\n", *data); in adc5_read_voltage_data()
325 dev_err(adc->dev, "ADC configure failed with %d\n", ret); in adc5_do_conversion()
332 dev_err(adc->dev, "EOC bit not set\n"); in adc5_do_conversion()
339 dev_dbg(adc->dev, "Did not get completion timeout.\n"); in adc5_do_conversion()
342 dev_err(adc->dev, "EOC bit not set\n"); in adc5_do_conversion()
367 dev_err(adc->dev, "ADC configure failed with %d\n", ret); in adc7_do_conversion()
379 dev_err(adc->dev, "Unexpected conversion fault\n"); in adc7_do_conversion()
638 struct device *dev = adc->dev; in adc5_get_fw_channel_data() local
640 name = devm_kasprintf(dev, GFP_KERNEL, "%pfwP", fwnode); in adc5_get_fw_channel_data()
649 dev_err(dev, "invalid channel number %s\n", name); in adc5_get_fw_channel_data()
663 dev_err(dev, "%s invalid channel number %d\n", name, chan); in adc5_get_fw_channel_data()
681 dev_err(dev, "%02x invalid decimation %d\n", in adc5_get_fw_channel_data()
694 dev_err(dev, "%02x invalid pre-scaling <%d %d>\n", in adc5_get_fw_channel_data()
711 dev_err(dev, "Invalid dig version read %d\n", ret); in adc5_get_fw_channel_data()
715 dev_dbg(dev, "dig_ver:minor:%d, major:%d\n", dig_version[0], in adc5_get_fw_channel_data()
726 dev_err(dev, "%02x invalid hw-settle-time %d us\n", in adc5_get_fw_channel_data()
739 dev_err(dev, "%02x invalid avg-samples %d\n", in adc5_get_fw_channel_data()
759 dev_dbg(dev, "%02x name %s\n", chan, name); in adc5_get_fw_channel_data()
832 adc->nchannels = device_get_child_node_count(adc->dev); in adc5_get_fw_data()
836 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_fw_data()
841 adc->chan_props = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_fw_data()
848 adc->data = device_get_match_data(adc->dev); in adc5_get_fw_data()
852 device_for_each_child_node(adc->dev, child) { in adc5_get_fw_data()
880 struct device *dev = &pdev->dev; in adc5_probe() local
887 regmap = dev_get_regmap(dev->parent, NULL); in adc5_probe()
891 ret = device_property_read_u32(dev, "reg", &reg); in adc5_probe()
895 indio_dev = devm_iio_device_alloc(dev, sizeof(*adc)); in adc5_probe()
901 adc->dev = dev; in adc5_probe()
909 return dev_err_probe(dev, ret, "adc get dt data failed\n"); in adc5_probe()
917 ret = devm_request_irq(dev, irq_eoc, adc5_isr, 0, in adc5_probe()
929 return devm_iio_device_register(dev, indio_dev); in adc5_probe()