Lines Matching refs:channels_info
21 struct hwmon_channel_info **channels_info; in hl_build_hwmon_channel_info() local
66 channels_info = kcalloc(num_active_sensor_types + 1, in hl_build_hwmon_channel_info()
67 sizeof(*channels_info), GFP_KERNEL); in hl_build_hwmon_channel_info()
68 if (!channels_info) { in hl_build_hwmon_channel_info()
74 channels_info[i] = kzalloc(sizeof(*channels_info[i]), in hl_build_hwmon_channel_info()
76 if (!channels_info[i]) { in hl_build_hwmon_channel_info()
86 channels_info[j]->type = i; in hl_build_hwmon_channel_info()
87 channels_info[j]->config = sensors_by_type[i]; in hl_build_hwmon_channel_info()
92 (const struct hwmon_channel_info **)channels_info; in hl_build_hwmon_channel_info()
98 if (channels_info[i]) { in hl_build_hwmon_channel_info()
99 kfree(channels_info[i]->config); in hl_build_hwmon_channel_info()
100 kfree(channels_info[i]); in hl_build_hwmon_channel_info()
102 kfree(channels_info); in hl_build_hwmon_channel_info()