thermal: rockchip: improve conversion error messages
authorBrian Norris <briannorris@chromium.org>
Mon, 12 Dec 2016 11:05:31 +0000 (19:05 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 14 Dec 2016 04:31:54 +0000 (20:31 -0800)
commite6ed1b4ad30331e6d878579dd95764d0a224cacd
treea9579efe532f70986767047b39123a0b5104beca
parentcdb98c2698b4af287925abcba4d77d92af82a0c3
thermal: rockchip: improve conversion error messages

These error messages don't give much information about what went wrong.
It would be nice, for one, to see what invalid temperature was being
requested when conversion fails. It's also good to return an error when
we can't handle a conversion properly.

While we're at it, fix the grammar too.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c