Lines Matching refs:channels_info
153 struct hwmon_channel_info **channels_info; in hl_build_hwmon_channel_info() local
198 channels_info = kcalloc(num_active_sensor_types + 1, sizeof(struct hwmon_channel_info *), in hl_build_hwmon_channel_info()
200 if (!channels_info) { in hl_build_hwmon_channel_info()
206 channels_info[i] = kzalloc(sizeof(*channels_info[i]), GFP_KERNEL); in hl_build_hwmon_channel_info()
207 if (!channels_info[i]) { in hl_build_hwmon_channel_info()
217 channels_info[j]->type = i; in hl_build_hwmon_channel_info()
218 channels_info[j]->config = sensors_by_type[i]; in hl_build_hwmon_channel_info()
222 hdev->hl_chip_info->info = (const struct hwmon_channel_info **)channels_info; in hl_build_hwmon_channel_info()
228 if (channels_info[i]) { in hl_build_hwmon_channel_info()
229 kfree(channels_info[i]->config); in hl_build_hwmon_channel_info()
230 kfree(channels_info[i]); in hl_build_hwmon_channel_info()
233 kfree(channels_info); in hl_build_hwmon_channel_info()