hwmon.c (4ce6e8a859f0503d97aac6869bc3b1a24b15601d) hwmon.c (52115fc32905c0bacc244f1dace9a138518df0de)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
4 *
5 * This file defines the sysfs class "hwmon", for use by sensors drivers.
6 *
7 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com>
8 */

--- 123 unchanged lines hidden (view full) ---

132
133 if (hwdev->group.attrs)
134 hwmon_free_attrs(hwdev->group.attrs);
135 kfree(hwdev->groups);
136 kfree(hwdev->label);
137 kfree(hwdev);
138}
139
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring
4 *
5 * This file defines the sysfs class "hwmon", for use by sensors drivers.
6 *
7 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com>
8 */

--- 123 unchanged lines hidden (view full) ---

132
133 if (hwdev->group.attrs)
134 hwmon_free_attrs(hwdev->group.attrs);
135 kfree(hwdev->groups);
136 kfree(hwdev->label);
137 kfree(hwdev);
138}
139
140static struct class hwmon_class = {
140static const struct class hwmon_class = {
141 .name = "hwmon",
142 .dev_groups = hwmon_dev_attr_groups,
143 .dev_release = hwmon_dev_release,
144};
145
146static DEFINE_IDA(hwmon_ida);
147
148/* Thermal zone handling */

--- 1167 unchanged lines hidden ---
141 .name = "hwmon",
142 .dev_groups = hwmon_dev_attr_groups,
143 .dev_release = hwmon_dev_release,
144};
145
146static DEFINE_IDA(hwmon_ida);
147
148/* Thermal zone handling */

--- 1167 unchanged lines hidden ---