Lines Matching +full:sens +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
29 struct wf_sensor sens; member
32 #define wf_to_6690(x) container_of((x), struct wf_6690_sensor, sens)
39 if (max->i2c == NULL) in wf_max6690_get()
40 return -ENODEV; in wf_max6690_get()
43 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get()
69 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe()
71 dev_warn(&client->dev, "Missing hwsensor-location property!\n"); in wf_max6690_probe()
72 return -ENXIO; in wf_max6690_probe()
80 name = "backside-temp"; in wf_max6690_probe()
82 name = "north-bridge-temp"; in wf_max6690_probe()
84 name = "gpu-temp"; in wf_max6690_probe()
86 return -ENXIO; in wf_max6690_probe()
92 return -ENOMEM; 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()
100 rc = wf_register_sensor(&max->sens); in wf_max6690_probe()
110 max->i2c = NULL; in wf_max6690_remove()
111 wf_unregister_sensor(&max->sens); in wf_max6690_remove()