thermal: armada: add a function that sanitizes the thermal zone name
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Jul 2018 14:41:44 +0000 (16:41 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 21:43:02 +0000 (14:43 -0700)
commit8d98761a6fc1eeee7232471c5285665fc7ecaa23
treef8e03ae7da642aa305ac9f717c1a2493cef46c01
parent9bebf3485c6a365ef0b7e83443a707eda2abc78b
thermal: armada: add a function that sanitizes the thermal zone name

Thermal zone names must follow certain rules imposed by the framework.
They are limited in length and shall not have any hyphen '-'.

This is done in a separate function for future use in another location.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c