Lines Matching refs:max
37 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_get() local
40 if (max->i2c == NULL) in wf_max6690_get()
44 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get()
53 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_release() local
55 kfree(max); in wf_max6690_release()
68 struct wf_6690_sensor *max; in wf_max6690_probe() local
90 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); in wf_max6690_probe()
91 if (max == NULL) { in wf_max6690_probe()
97 max->i2c = client; in wf_max6690_probe()
98 max->sens.name = name; in wf_max6690_probe()
99 max->sens.ops = &wf_max6690_ops; in wf_max6690_probe()
100 i2c_set_clientdata(client, max); in wf_max6690_probe()
102 rc = wf_register_sensor(&max->sens); in wf_max6690_probe()
104 kfree(max); in wf_max6690_probe()
110 struct wf_6690_sensor *max = i2c_get_clientdata(client); in wf_max6690_remove() local
112 max->i2c = NULL; in wf_max6690_remove()
113 wf_unregister_sensor(&max->sens); in wf_max6690_remove()