Lines Matching +full:0 +full:x4d
34 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };
40 #define MAX6642_REG_R_MAN_ID 0xFE
41 #define MAX6642_REG_R_CONFIG 0x03
42 #define MAX6642_REG_W_CONFIG 0x09
43 #define MAX6642_REG_R_STATUS 0x02
44 #define MAX6642_REG_R_LOCAL_TEMP 0x00
45 #define MAX6642_REG_R_LOCAL_TEMPL 0x11
46 #define MAX6642_REG_R_LOCAL_HIGH 0x05
47 #define MAX6642_REG_W_LOCAL_HIGH 0x0B
48 #define MAX6642_REG_R_REMOTE_TEMP 0x01
49 #define MAX6642_REG_R_REMOTE_TEMPL 0x10
50 #define MAX6642_REG_R_REMOTE_HIGH 0x07
51 #define MAX6642_REG_W_REMOTE_HIGH 0x0D
101 if (config & 0x40) in max6642_init_client()
103 config & 0xBF); /* run */ in max6642_init_client()
105 data->temp_high[0] = i2c_smbus_read_byte_data(client, in max6642_init_client()
111 /* Return 0 if detection is successful, -ENODEV otherwise */
123 if (man_id != 0x4D) in max6642_detect()
127 if (i2c_smbus_read_byte_data(client, 0x04) != 0x4D in max6642_detect()
128 || i2c_smbus_read_byte_data(client, 0x06) != 0x4D in max6642_detect()
129 || i2c_smbus_read_byte_data(client, 0xff) != 0x4D) in max6642_detect()
134 * config register should be zero and bit 5, 3, 1 and 0 should be in max6642_detect()
138 if ((reg_config & 0x0f) != 0x00) in max6642_detect()
142 if (i2c_smbus_read_byte_data(client, 0x04) != reg_config in max6642_detect()
143 || i2c_smbus_read_byte_data(client, 0x06) != reg_config in max6642_detect()
144 || i2c_smbus_read_byte_data(client, 0xff) != reg_config) in max6642_detect()
148 if ((reg_status & 0x2b) != 0x00) in max6642_detect()
153 return 0; in max6642_detect()
172 data->temp_input[0] = val; in max6642_update_device()
225 if (err < 0) in temp_max_store()
229 data->temp_high[attr2->nr] = clamp_val(temp_to_reg(val), 0, 255); in temp_max_store()
244 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_max10, 0);
246 static SENSOR_DEVICE_ATTR_2_RW(temp1_max, temp_max, 0,
294 { "max6642", 0 },