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);
67 struct wf_6690_sensor *max;
89 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL);
90 if (max == NULL) {
96 max->i2c = client;
97 max->sens.name = name;
98 max->sens.ops = &wf_max6690_ops;
99 i2c_set_clientdata(client, max);
101 rc = wf_register_sensor(&max->sens);
103 kfree(max);
109 struct wf_6690_sensor *max = i2c_get_clientdata(client);
111 max->i2c = NULL;
112 wf_unregister_sensor(&max->sens);