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