Lines Matching refs:max
36 struct wf_6690_sensor *max = wf_to_6690(sr);
39 if (max->i2c == NULL)
43 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP);
52 struct wf_6690_sensor *max = wf_to_6690(sr);
54 kfree(max);
66 struct wf_6690_sensor *max;
88 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL);
89 if (max == NULL) {
95 max->i2c = client;
96 max->sens.name = name;
97 max->sens.ops = &wf_max6690_ops;
98 i2c_set_clientdata(client, max);
100 rc = wf_register_sensor(&max->sens);
102 kfree(max);
108 struct wf_6690_sensor *max = i2c_get_clientdata(client);
110 max->i2c = NULL;
111 wf_unregister_sensor(&max->sens);