Lines Matching refs:config1
1830 static const char *lm90_detect_max1617(struct i2c_client *client, int config1) in lm90_detect_max1617() argument
1838 if (config1 & 0x3f) in lm90_detect_max1617()
1890 (config1 | 0xff00)) in lm90_detect_max1617()
1901 int config1, int convrate) in lm90_detect_national() argument
1910 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09) 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
1943 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_on()
1954 int chip_id, int config1, int convrate) in lm90_detect_analog() argument
2006 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2012 (config1 & 0x0b) == 0x08 && convrate <= 0x0a) in lm90_detect_analog()
2031 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2037 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2042 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2047 (address == 0x4c || address == 0x4d) && !(config1 & 0x3f) && in lm90_detect_analog()
2053 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2059 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2065 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2071 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2077 common_address && !(config1 & 0x1b) && convrate <= 0x0a) in lm90_detect_analog()
2082 (address == 0x4b || address == 0x4c) && !(config1 & 0x10) && in lm90_detect_analog()
2090 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) && in lm90_detect_analog()
2100 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a) in lm90_detect_analog()
2111 int chip_id, int config1, int convrate) in lm90_detect_maxim() argument
2150 if (!(config1 & 0x10) && !(status2 & 0x01) && emerg == emerg2 && in lm90_detect_maxim()
2162 else if (!(config1 & 0x03) && convrate <= 0x07 && in lm90_detect_maxim()
2177 else if (!(config1 & 0x03f) && convrate <= 0x07 && in lm90_detect_maxim()
2187 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2200 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2222 if (address >= 0x48 && address <= 0x4f && config1 == convrate && in lm90_detect_maxim()
2223 !(config1 & 0x0f)) { in lm90_detect_maxim()
2255 (config1 & 0x1f) == 0x0d && convrate <= 0x09) { in lm90_detect_maxim()
2277 if (!(config1 & 0x3f) && convrate <= 0x07) { in lm90_detect_maxim()
2313 int config1, int convrate) in lm90_detect_nuvoton() argument
2322 if (address == 0x4c && !(config1 & 0x2a) && !(config2 & 0xf8)) { in lm90_detect_nuvoton()
2335 int config1, int convrate) in lm90_detect_nuvoton_50() argument
2350 if (address == 0x48 && !(config1 & 0x3e) && !(config2 & 0xfe)) in lm90_detect_nuvoton_50()
2354 if ((address == 0x48 || address == 0x49) && !(config1 & 0x3e) && in lm90_detect_nuvoton_50()
2357 else if (address == 0x4c && !(config1 & 0x38) && !(config2 & 0xf8)) in lm90_detect_nuvoton_50()
2367 int chip_id, int config1, int convrate) in lm90_detect_nxp() argument
2379 !(config1 & 0x2a) && !(config2 & 0xfe) && convrate <= 0x09) in lm90_detect_nxp()
2383 if (common_address && !(config1 & 0x3f) && convrate <= 0x07) in lm90_detect_nxp()
2393 int config1, int convrate) in lm90_detect_gmt() argument
2418 !(config1 & 0x3f) && convrate <= 0x08) { 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()
2447 int config1, int convrate) 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
2498 config1 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG1); 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()
2523 if (common_address && !convrate && !(config1 & 0x7f)) 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()
2533 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) 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()
2548 config1, convrate); in lm90_detect()
2551 name = lm90_detect_nuvoton_50(client, chip_id, config1, convrate); in lm90_detect()
2554 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) 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()
2568 name = lm90_detect_max1617(client, config1); in lm90_detect()