Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

From: Guenter Roeck
Date: Fri Oct 24 2014 - 23:53:26 EST


On 10/23/2014 12:55 PM, Andrew Lunn wrote:
[ ... ]

Does hwmon offer a function to sanitise a string?

No, that wasn't necessary so far. The 'name' string is a constant string
provided by the driver.

The switch index definitely should be used and i would probably
combine that with a sanitised version of the ethernet device name and
"dsa".


How is this ?

em1dsa0-isa-0000
Adapter: ISA adapter
temp1: +38.0°C (high = +100.0°C)

This is the sanitized network device name + 'dsa' + index.

Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/