lkml.org 
[lkml]   [2022]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] hwmon: introduce hwmon_sanitize()
Date
During development of the support for the temperature sensor on the GPY
PHY, I've noticed that there is ususually a loop over the name to
replace any invalid characters. Instead of open coding it in the drivers
provide a convenience function.

The last patch is marked as RFC, it should probably be reposted/applied
to the kernel release after next (?).

changes since v2:
- doc update
- dropped last three patches, the net patches will be submitted
seperately

changes since v1:
- split patches
- add hwmon-kernel-api.rst documentation
- move the strdup into the hwmon core
- also provide a resource managed variant

Michael Walle (2):
hwmon: introduce hwmon_sanitize_name()
hwmon: intel-m10-bmc-hwmon: use devm_hwmon_sanitize_name()

Documentation/hwmon/hwmon-kernel-api.rst | 16 ++++++++
drivers/hwmon/hwmon.c | 50 ++++++++++++++++++++++++
drivers/hwmon/intel-m10-bmc-hwmon.c | 7 +---
include/linux/hwmon.h | 3 ++
4 files changed, 70 insertions(+), 6 deletions(-)

--
2.30.2

\
 
 \ /
  Last update: 2022-04-05 00:34    [W:0.115 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site