Lines Matching defs:config1
1462 int man_id, chip_id, config1, config2, convrate;
1470 config1 = i2c_smbus_read_byte_data(client, LM90_REG_R_CONFIG1);
1472 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0)
1483 if ((config1 & 0x2A) == 0x00
1509 && (config1 & 0x3F) == 0x00
1521 && (config1 & 0x1B) == 0x00
1526 && (config1 & 0x1B) == 0x00
1555 * register. Likewise, the config1 register seems to lack a
1566 && (config1 & 0x1F) == (man_id & 0x0F)
1575 * register, reading it returns 0x01. Bit 4 of the config1
1585 && (config1 & 0x10) == 0x00
1593 * revision of the chip. The lowest bit of the config1 register
1595 * second to last bit of config1 (software reset).
1598 && (config1 & 0x03) == 0x00
1604 * revision of the chip. The lowest 6 bits of the config1
1608 && (config1 & 0x3f) == 0x00
1614 * The lowest 3 bits of the config1 register are unused and
1618 && (config1 & 0x07) == 0x00
1625 if ((config1 & 0x2A) == 0x00
1640 && (config1 & 0x2A) == 0x00
1649 && (config1 & 0x3F) == 0x00
1654 (config1 & 0x1B) == 0x00 && convrate <= 0x09) {