Lines Matching refs:man_id
1848 * The calling code already checked man_id and chip_id.
2118 int man_id, emerg, emerg2, status2;
2135 man_id = i2c_smbus_read_byte_data(client,
2141 if (emerg < 0 || man_id < 0 || emerg2 < 0 || status2 < 0)
2164 * should differ from emerg2, and emerg2 should match man_id
2168 emerg2 == man_id && emerg2 != status2)
2212 * read value, which in our case is those of the man_id
2220 * read, so in our case again those of the man_id register.
2451 int man_id, chip_id, config1, convrate, lhigh;
2463 * Get well defined register value for chips with neither man_id nor
2469 man_id = i2c_smbus_read_byte_data(client, LM90_REG_MAN_ID);
2473 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0)
2477 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate)
2481 * If reading man_id and chip_id both return the same value as lhigh,
2485 if (man_id == lhigh && chip_id == lhigh) {
2487 man_id = i2c_smbus_read_byte_data(client, LM90_REG_MAN_ID);
2489 if (convrate < 0 || man_id < 0 || chip_id < 0)
2491 if (man_id == convrate && chip_id == convrate)
2492 man_id = -1;
2494 switch (man_id) {
2495 case -1: /* Chip does not support man_id / chip_id */
2546 "Unsupported chip at 0x%02x (man_id=0x%02X, chip_id=0x%02X)\n",
2547 client->addr, man_id, chip_id);