Lines Matching refs:ps_client
131 struct i2c_client *ps_client; member
146 struct i2c_client *ps_client = cm36651->ps_client; in cm36651_setup_reg() local
170 ret = i2c_smbus_write_byte_data(ps_client, cm36651_ps_reg[i], in cm36651_setup_reg()
182 ret = i2c_smbus_write_byte_data(cm36651->ps_client, in cm36651_setup_reg()
210 *val = i2c_smbus_read_byte(cm36651->ps_client); in cm36651_read_output()
215 ret = i2c_smbus_write_byte_data(cm36651->ps_client, in cm36651_read_output()
276 struct i2c_client *ps_client = cm36651->ps_client; in cm36651_set_operation_mode() local
288 ret = i2c_smbus_write_byte_data(ps_client, CM36651_PS_CONF1, in cm36651_set_operation_mode()
299 ret = i2c_smbus_write_byte_data(ps_client, in cm36651_set_operation_mode()
315 ret = i2c_smbus_write_byte_data(ps_client, in cm36651_set_operation_mode()
394 struct i2c_client *ps_client = cm36651->ps_client; in cm36651_write_int_time() local
430 ret = i2c_smbus_write_byte_data(ps_client, in cm36651_write_int_time()
517 ret = i2c_smbus_write_byte_data(cm36651->ps_client, CM36651_PS_THD, in cm36651_write_prox_thresh()
648 cm36651->ps_client = i2c_new_dummy_device(client->adapter, in cm36651_probe()
650 if (IS_ERR(cm36651->ps_client)) { in cm36651_probe()
652 ret = PTR_ERR(cm36651->ps_client); in cm36651_probe()
697 i2c_unregister_device(cm36651->ps_client); in cm36651_probe()
711 i2c_unregister_device(cm36651->ps_client); in cm36651_remove()