Commit Graph

6 Commits

Author SHA1 Message Date
Tim Crawford e457babab4
Use devres
Allow kernel to handle removal of devices when driver is unloaded.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-09 15:44:44 -06:00
Tim Crawford 9c210e3060
hwmon: Replace deprecated function
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-09 15:27:09 -06:00
Tim Crawford cc4802bd26
Replace sprintf with sysfs_emit
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-06 16:56:48 -06:00
Tim Crawford dd00fe93ca
Address checkpatch issues
- Convert license blocks to SPDX ID tags
- Remove unlikely from IS_ERR calls
- Replace hard-coded function names with __func__
- Replace symbolic permissions with octals
- Add blank lines after declarations
- Do not initialize statics to 0
- Remove unneeded cast from kzalloc
- Add missing spacing around values

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-06 16:50:13 -06:00
Tim Crawford c81a34d0fc
Format code
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-06 07:35:55 -06:00
Tim Crawford c24eadde07
Move sources to subdirectory
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2025-06-06 07:35:55 -06:00
Renamed from system76_hwmon.c (Browse further)