Lines Matching refs:chip_id
1900 static const char *lm90_detect_national(struct i2c_client *client, int chip_id, in lm90_detect_national() argument
1916 switch (chip_id & 0xf0) { in lm90_detect_national()
1935 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1, in lm90_detect_on() argument
1941 switch (chip_id) { in lm90_detect_on()
1954 int chip_id, int config1, int convrate) in lm90_detect_analog() argument
2002 switch (chip_id) { in lm90_detect_analog()
2111 int chip_id, int config1, int convrate) in lm90_detect_maxim() argument
2117 switch (chip_id) { in lm90_detect_maxim()
2312 static const char *lm90_detect_nuvoton(struct i2c_client *client, int chip_id, in lm90_detect_nuvoton() argument
2323 if (chip_id == 0x01 && convrate <= 0x09) { in lm90_detect_nuvoton()
2326 } else if ((chip_id & 0xfe) == 0x10 && convrate <= 0x08) { in lm90_detect_nuvoton()
2334 static const char *lm90_detect_nuvoton_50(struct i2c_client *client, int chip_id, in lm90_detect_nuvoton_50() argument
2348 switch (chip_id) { in lm90_detect_nuvoton_50()
2367 int chip_id, int config1, int convrate) in lm90_detect_nxp() argument
2373 switch (chip_id) { in lm90_detect_nxp()
2392 static const char *lm90_detect_gmt(struct i2c_client *client, int chip_id, in lm90_detect_gmt() argument
2416 if ((chip_id == 0x01 || chip_id == 0x03) && in lm90_detect_gmt()
2435 int chip_id, int config1, int convrate) in lm90_detect_ti49() argument
2437 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) { in lm90_detect_ti49()
2446 static const char *lm90_detect_ti(struct i2c_client *client, int chip_id, in lm90_detect_ti() argument
2452 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) { in lm90_detect_ti()
2478 int man_id, chip_id, config1, convrate, lhigh; in lm90_detect() local
2497 chip_id = i2c_smbus_read_byte_data(client, LM90_REG_CHIP_ID); in lm90_detect()
2500 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0) in lm90_detect()
2504 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate) in lm90_detect()
2512 if (man_id == lhigh && chip_id == lhigh) { in lm90_detect()
2515 chip_id = i2c_smbus_read_byte_data(client, LM90_REG_CHIP_ID); in lm90_detect()
2516 if (convrate < 0 || man_id < 0 || chip_id < 0) in lm90_detect()
2518 if (man_id == convrate && chip_id == convrate) in lm90_detect()
2527 name = lm90_detect_national(client, chip_id, config1, convrate); in lm90_detect()
2530 name = lm90_detect_on(client, chip_id, config1, convrate); in lm90_detect()
2537 name = lm90_detect_analog(client, common_address, chip_id, config1, in lm90_detect()
2541 name = lm90_detect_gmt(client, chip_id, config1, convrate); in lm90_detect()
2544 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate); in lm90_detect()
2547 name = lm90_detect_maxim(client, common_address, chip_id, in lm90_detect()
2551 name = lm90_detect_nuvoton_50(client, chip_id, config1, convrate); in lm90_detect()
2558 name = lm90_detect_ti(client, chip_id, config1, convrate); in lm90_detect()
2561 name = lm90_detect_nuvoton(client, chip_id, config1, convrate); in lm90_detect()
2564 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate); in lm90_detect()
2567 if (common_address && chip_id == 0xff && convrate < 8) in lm90_detect()
2577 client->addr, man_id, chip_id); in lm90_detect()