[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220329160730.3265481-1-michael@walle.cc>
Date: Tue, 29 Mar 2022 18:07:25 +0200
From: Michael Walle <michael@...le.cc>
To: Xu Yilun <yilun.xu@...el.com>, Tom Rix <trix@...hat.com>,
Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, Michael Walle <michael@...le.cc>
Subject: [PATCH v2 0/5] hwmon: introduce hwmon_sanitize()
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 v1:
- split patches
- add hwmon-kernel-api.rst documentation
- move the strdup into the hwmon core
- also provide a resource managed variant
Michael Walle (5):
hwmon: introduce hwmon_sanitize_name()
hwmon: intel-m10-bmc-hwmon: use devm_hwmon_sanitize_name()
net: sfp: use hwmon_sanitize_name()
net: phy: nxp-tja11xx: use devm_hwmon_sanitize_name()
hwmon: move hwmon_is_bad_char() into core
Documentation/hwmon/hwmon-kernel-api.rst | 9 +++-
drivers/hwmon/hwmon.c | 69 ++++++++++++++++++++++++
drivers/hwmon/intel-m10-bmc-hwmon.c | 7 +--
drivers/net/phy/nxp-tja11xx.c | 7 +--
drivers/net/phy/sfp.c | 8 +--
include/linux/hwmon.h | 24 +--------
6 files changed, 83 insertions(+), 41 deletions(-)
--
2.30.2
Powered by blists - more mailing lists