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 if (!hwmon->sensors) in cgbc_hwmon_probe_sensors()
113 sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
121 * We got data for the first sensor when we ask the number of sensors to the Board in cgbc_hwmon_probe_sensors()
139 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_probe_sensors()
171 * The Board Controller doesn't differentiate current and voltage sensors. in cgbc_hwmon_find_sensor()
173 * sensors. in cgbc_hwmon_find_sensor()
179 if (hwmon->sensors[i].type == type && hwmon->sensors[i].channel == channel) { in cgbc_hwmon_find_sensor()
180 sensor = &hwmon->sensors[i]; in cgbc_hwmon_find_sensor()
289 return dev_err_probe(dev, ret, "Failed to probe sensors"); in cgbc_hwmon_probe()