Lines Matching defs:config1
1842 static const char *lm90_detect_max1617(struct i2c_client *client, int config1)
1850 if (config1 & 0x3f)
1902 (config1 | 0xff00))
1913 int config1, int convrate)
1922 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09)
1947 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1,
1955 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
1966 int chip_id, int config1, int convrate)
2018 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2024 (config1 & 0x0b) == 0x08 && convrate <= 0x0a)
2043 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2049 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2054 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2059 (address == 0x4c || address == 0x4d) && !(config1 & 0x3f) &&
2065 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2071 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2077 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2083 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2089 common_address && !(config1 & 0x1b) && convrate <= 0x0a)
2094 (address == 0x4b || address == 0x4c) && !(config1 & 0x10) &&
2102 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) &&
2112 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a)
2123 int chip_id, int config1, int convrate)
2153 * register, reading it returns 0x01. Bit 4 of the config1
2162 if (!(config1 & 0x10) && !(status2 & 0x01) && emerg == emerg2 &&
2167 * revision of the chip. The lowest bit of the config1 register
2169 * second to last bit of config1 (software reset). Register
2174 else if (!(config1 & 0x03) && convrate <= 0x07 &&
2189 else if (!(config1 & 0x03f) && convrate <= 0x07 &&
2196 * The lowest 3 bits of the config1 register are unused and
2199 if (common_address && !(config1 & 0x07) && convrate <= 0x07)
2205 * The lowest 3 bits of the config1 register are unused and
2212 if (common_address && !(config1 & 0x07) && convrate <= 0x07)
2225 * For MAX6657, MAX6658 and MAX6659, the config1 register lacks
2234 if (address >= 0x48 && address <= 0x4f && config1 == convrate &&
2235 !(config1 & 0x0f)) {
2267 (config1 & 0x1f) == 0x0d && convrate <= 0x09) {
2277 * revision of the chip. The lowest 6 bits of the config1
2289 if (!(config1 & 0x3f) && convrate <= 0x07) {
2325 int config1, int convrate)
2334 if (address == 0x4c && !(config1 & 0x2a) && !(config2 & 0xf8)) {
2347 int config1, int convrate)
2362 if (address == 0x48 && !(config1 & 0x3e) && !(config2 & 0xfe))
2366 if ((address == 0x48 || address == 0x49) && !(config1 & 0x3e) &&
2369 else if (address == 0x4c && !(config1 & 0x38) && !(config2 & 0xf8))
2379 int chip_id, int config1, int convrate)
2391 !(config1 & 0x2a) && !(config2 & 0xfe) && convrate <= 0x09)
2395 if (common_address && !(config1 & 0x3f) && convrate <= 0x07)
2405 int config1, int convrate)
2430 !(config1 & 0x3f) && convrate <= 0x08) {
2447 int chip_id, int config1, int convrate)
2449 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) {
2459 int config1, int convrate)
2464 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) {
2490 int man_id, chip_id, config1, convrate, lhigh;
2510 config1 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG1);
2512 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0)
2516 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate)
2535 if (common_address && !convrate && !(config1 & 0x7f))
2539 name = lm90_detect_national(client, chip_id, config1, convrate);
2542 name = lm90_detect_on(client, chip_id, config1, convrate);
2545 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8))
2549 name = lm90_detect_analog(client, common_address, chip_id, config1,
2553 name = lm90_detect_gmt(client, chip_id, config1, convrate);
2556 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate);
2560 config1, convrate);
2563 name = lm90_detect_nuvoton_50(client, chip_id, config1, convrate);
2566 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8))
2570 name = lm90_detect_ti(client, chip_id, config1, convrate);
2573 name = lm90_detect_nuvoton(client, chip_id, config1, convrate);
2576 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate);
2580 name = lm90_detect_max1617(client, config1);