Lines Matching refs:clientp
810 static int tsl2583_probe(struct i2c_client *clientp, in tsl2583_probe() argument
817 if (!i2c_check_functionality(clientp->adapter, in tsl2583_probe()
819 dev_err(&clientp->dev, "%s: i2c smbus byte data functionality is unsupported\n", in tsl2583_probe()
824 indio_dev = devm_iio_device_alloc(&clientp->dev, sizeof(*chip)); in tsl2583_probe()
829 chip->client = clientp; in tsl2583_probe()
830 i2c_set_clientdata(clientp, indio_dev); in tsl2583_probe()
834 ret = i2c_smbus_read_byte_data(clientp, in tsl2583_probe()
837 dev_err(&clientp->dev, in tsl2583_probe()
843 dev_err(&clientp->dev, "%s: received an unknown chip ID %x\n", in tsl2583_probe()
854 pm_runtime_enable(&clientp->dev); in tsl2583_probe()
855 pm_runtime_set_autosuspend_delay(&clientp->dev, in tsl2583_probe()
857 pm_runtime_use_autosuspend(&clientp->dev); in tsl2583_probe()
861 dev_err(&clientp->dev, "%s: iio registration failed\n", in tsl2583_probe()
869 dev_info(&clientp->dev, "Light sensor found.\n"); in tsl2583_probe()