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()
70 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe()
72 dev_warn(&client->dev, "Missing hwsensor-location property!\n"); in wf_max6690_probe()
73 return -ENXIO; in wf_max6690_probe()
81 name = "backside-temp"; in wf_max6690_probe()
83 name = "north-bridge-temp"; in wf_max6690_probe()
85 name = "gpu-temp"; in wf_max6690_probe()
87 return -ENXIO; in wf_max6690_probe()
93 return -ENOMEM; in wf_max6690_probe()
96 max->i2c = client; in wf_max6690_probe()
97 max->sens.name = name; in wf_max6690_probe()
98 max->sens.ops = &wf_max6690_ops; in wf_max6690_probe()
101 rc = wf_register_sensor(&max->sens); in wf_max6690_probe()
111 max->i2c = NULL; in wf_max6690_remove()
112 wf_unregister_sensor(&max->sens); in wf_max6690_remove()