Lines Matching refs:dev
77 dev_err(&indio_dev->dev, "failed to read adc\n"); in lm3533_als_get_adc()
94 dev_err(&indio_dev->dev, "failed to read zone\n"); in _lm3533_als_get_zone()
145 dev_err(&indio_dev->dev, "failed to get target current\n"); in lm3533_als_get_target()
166 dev_err(&indio_dev->dev, "failed to set target current\n"); in lm3533_als_set_target()
285 dev_err(&indio_dev->dev, "failed to set int mode %d\n", in lm3533_als_set_int_mode()
302 dev_err(&indio_dev->dev, "failed to get int mode\n"); in lm3533_als_get_int_mode()
331 dev_err(&indio_dev->dev, "failed to get threshold\n"); in lm3533_als_get_threshold()
353 dev_err(&indio_dev->dev, "failed to get threshold\n"); in lm3533_als_set_threshold()
368 dev_err(&indio_dev->dev, "failed to set threshold\n"); in lm3533_als_set_threshold()
403 static ssize_t show_thresh_either_en(struct device *dev, in show_thresh_either_en() argument
407 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in show_thresh_either_en()
423 static ssize_t store_thresh_either_en(struct device *dev, in store_thresh_either_en() argument
427 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in store_thresh_either_en()
466 static ssize_t show_zone(struct device *dev, in show_zone() argument
469 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in show_zone()
500 static ssize_t show_als_attr(struct device *dev, in show_als_attr() argument
504 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in show_als_attr()
536 static ssize_t store_als_attr(struct device *dev, in store_als_attr() argument
540 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in store_als_attr()
730 dev_err(&als->pdev->dev, "failed to set input mode %d\n", in lm3533_als_set_input_mode()
743 dev_err(&als->pdev->dev, "invalid resistor value\n"); in lm3533_als_set_resistor()
749 dev_err(&als->pdev->dev, "failed to set resistor\n"); in lm3533_als_set_resistor()
775 static int lm3533_als_setup_irq(struct lm3533_als *als, void *dev) in lm3533_als_setup_irq() argument
783 dev_err(&als->pdev->dev, "failed to disable interrupts\n"); in lm3533_als_setup_irq()
789 dev_name(&als->pdev->dev), dev); in lm3533_als_setup_irq()
791 dev_err(&als->pdev->dev, "failed to request irq %d\n", in lm3533_als_setup_irq()
806 dev_err(&als->pdev->dev, "failed to enable ALS\n"); in lm3533_als_enable()
818 dev_err(&als->pdev->dev, "failed to disable ALS\n"); in lm3533_als_disable()
837 lm3533 = dev_get_drvdata(pdev->dev.parent); in lm3533_als_probe()
841 pdata = pdev->dev.platform_data; in lm3533_als_probe()
843 dev_err(&pdev->dev, "no platform data\n"); in lm3533_als_probe()
847 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*als)); in lm3533_als_probe()
854 indio_dev->name = dev_name(&pdev->dev); in lm3533_als_probe()
855 iio_device_set_parent(indio_dev, pdev->dev.parent); in lm3533_als_probe()
883 dev_err(&pdev->dev, "failed to register ALS\n"); in lm3533_als_probe()