Searched refs:clientp (Results 1 – 2 of 2) sorted by relevance
/drivers/iio/light/ |
D | tsl2583.c | 812 static int tsl2583_probe(struct i2c_client *clientp, in tsl2583_probe() argument 819 if (!i2c_check_functionality(clientp->adapter, in tsl2583_probe() 821 dev_err(&clientp->dev, "%s: i2c smbus byte data functionality is unsupported\n", in tsl2583_probe() 826 indio_dev = devm_iio_device_alloc(&clientp->dev, sizeof(*chip)); in tsl2583_probe() 831 chip->client = clientp; in tsl2583_probe() 832 i2c_set_clientdata(clientp, indio_dev); in tsl2583_probe() 836 ret = i2c_smbus_read_byte_data(clientp, in tsl2583_probe() 839 dev_err(&clientp->dev, in tsl2583_probe() 845 dev_err(&clientp->dev, "%s: received an unknown chip ID %x\n", in tsl2583_probe() 856 pm_runtime_enable(&clientp->dev); in tsl2583_probe() [all …]
|
D | tsl2772.c | 1759 static int tsl2772_probe(struct i2c_client *clientp, in tsl2772_probe() argument 1766 indio_dev = devm_iio_device_alloc(&clientp->dev, sizeof(*chip)); in tsl2772_probe() 1771 chip->client = clientp; in tsl2772_probe() 1772 i2c_set_clientdata(clientp, indio_dev); in tsl2772_probe() 1777 ret = devm_regulator_bulk_get(&clientp->dev, in tsl2772_probe() 1781 return dev_err_probe(&clientp->dev, ret, "Failed to get regulators\n"); in tsl2772_probe() 1785 dev_err(&clientp->dev, "Failed to enable regulators: %d\n", in tsl2772_probe() 1790 ret = devm_add_action_or_reset(&clientp->dev, in tsl2772_probe() 1794 dev_err(&clientp->dev, "Failed to setup regulator cleanup action %d\n", in tsl2772_probe() 1813 ret = i2c_smbus_write_byte(clientp, TSL2772_CMD_REG | TSL2772_CNTRL); in tsl2772_probe() [all …]
|