]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ti-soc-thermal: return error in case power switch is not supported
authorEduardo Valentin <eduardo.valentin@ti.com>
Mon, 1 Apr 2013 16:04:33 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:27:28 +0000 (12:27 -0700)
commitf9d1d3a16a7936f1057c7b6b962a2d1071404458
treeda603444ef7dfd87f395a3ae9e4ddec6a195457d
parent2436c3b2ecfc51d321f3f1d3c446cb7c13a876cc
staging: ti-soc-thermal: return error in case power switch is not supported

Improve ti_bandgap_power by returning an error code in case
the device does not support controlling its power state.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/ti-bandgap.c