Home
last modified time | relevance | path

Searched refs:new_client (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/hwmon/
H A Dlm75.c1017 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument
1020 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect()
1055 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect()
1060 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect()
1065 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect()
1066 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect()
1067 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect()
1070 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
1071 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect()
1074 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
[all …]
H A Dlm73.c229 static int lm73_detect(struct i2c_client *new_client, in lm73_detect() argument
232 struct i2c_adapter *adapter = new_client->adapter; in lm73_detect()
243 ctrl = i2c_smbus_read_byte_data(new_client, LM73_REG_CTRL); in lm73_detect()
247 conf = i2c_smbus_read_byte_data(new_client, LM73_REG_CONF); in lm73_detect()
251 id = i2c_smbus_read_byte_data(new_client, LM73_REG_ID); in lm73_detect()
256 id = i2c_smbus_read_word_data(new_client, LM73_REG_ID); in lm73_detect()
H A Dstts751.c648 static int stts751_detect(struct i2c_client *new_client, in stts751_detect() argument
651 struct i2c_adapter *adapter = new_client->adapter; in stts751_detect()
658 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_MAN_ID); in stts751_detect()
663 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_TEMP_L); in stts751_detect()
667 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_HLIM_L); in stts751_detect()
671 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_LLIM_L); in stts751_detect()
676 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_SMBUS_TO); in stts751_detect()
680 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_PROD_ID); in stts751_detect()
692 dev_dbg(&new_client->dev, "Chip %s detected", name); in stts751_detect()
H A Dw83792d.c921 w83792d_detect_subclients(struct i2c_client *new_client) in w83792d_detect_subclients() argument
924 int address = new_client->addr; in w83792d_detect_subclients()
926 struct i2c_adapter *adapter = new_client->adapter; in w83792d_detect_subclients()
933 dev_err(&new_client->dev, in w83792d_detect_subclients()
939 w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR, in w83792d_detect_subclients()
944 val = w83792d_read_value(new_client, W83792D_REG_I2C_SUBADDR); in w83792d_detect_subclients()
947 dev_err(&new_client->dev, in w83792d_detect_subclients()
953 devm_i2c_new_dummy_device(&new_client->dev, adapter, 0x48 + (val & 0x7)); in w83792d_detect_subclients()
956 devm_i2c_new_dummy_device(&new_client->dev, adapter, 0x48 + ((val >> 4) & 0x7)); in w83792d_detect_subclients()
/linux/drivers/gpu/vga/
H A Dvga_switcheroo.c707 static int vga_switchto_stage1(struct vga_switcheroo_client *new_client) in vga_switchto_stage1() argument
715 if (vga_switcheroo_pwr_state(new_client) == VGA_SWITCHEROO_OFF) in vga_switchto_stage1()
716 vga_switchon(new_client); in vga_switchto_stage1()
718 vga_set_default_device(new_client->pdev); in vga_switchto_stage1()
723 static int vga_switchto_stage2(struct vga_switcheroo_client *new_client) in vga_switchto_stage2() argument
738 if (new_client->fb_info) in vga_switchto_stage2()
739 fbcon_remap_all(new_client->fb_info); in vga_switchto_stage2()
742 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2()
747 if (new_client->ops->reprobe) in vga_switchto_stage2()
748 new_client->ops->reprobe(new_client->pdev); in vga_switchto_stage2()
[all …]