RE: [PATCH v3 1/2] hwmon: introduce hwmon_sanitize_name()

From: David Laight
Date: Tue Apr 05 2022 - 06:08:10 EST


From: Guenter Roeck
> Sent: 05 April 2022 00:31
...
> >>   /**
> >>    * hwmon_is_bad_char - Is the char invalid in a hwmon name
> >
> > This still needed in *.h ?
> >
>
> Yes, because it is used by out-of-tree drivers. We can only move
> that into hwmon.c after all users are gone.

And drivers might want to 'sanitize' a copy of the name without
reallocating it.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)