Lines Matching full:sensors
33 struct cgbc_hwmon_sensor *sensors; member
99 struct cgbc_hwmon_sensor *sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
109 hwmon->sensors = devm_kzalloc(dev, sizeof(*hwmon->sensors) * nb_sensors, GFP_KERNEL); in cgbc_hwmon_probe_sensors()
110 sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
118 * We got data for the first sensor when we ask the number of sensors to the Board in cgbc_hwmon_probe_sensors()
136 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_probe_sensors()
168 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_find_sensor()
170 * sensors. in cgbc_hwmon_find_sensor()
176 if (hwmon->sensors[i].type == type && hwmon->sensors[i].channel == channel) { in cgbc_hwmon_find_sensor()
177 sensor = &hwmon->sensors[i]; in cgbc_hwmon_find_sensor()
286 return dev_err_probe(dev, ret, "Failed to probe sensors"); in cgbc_hwmon_probe()