Lines Matching refs:max
37 struct wf_6690_sensor *max = wf_to_6690(sr);
40 if (max->i2c == NULL)
44 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP);
53 struct wf_6690_sensor *max = wf_to_6690(sr);
55 kfree(max);
67 struct wf_6690_sensor *max;
70 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL);
71 if (max == NULL) {
77 max->i2c = client;
78 max->sens.name = client->dev.platform_data;
79 max->sens.ops = &wf_max6690_ops;
80 i2c_set_clientdata(client, max);
82 rc = wf_register_sensor(&max->sens);
84 kfree(max);
164 struct wf_6690_sensor *max = i2c_get_clientdata(client);
166 max->i2c = NULL;
167 wf_unregister_sensor(&max->sens);