]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Storing tps65912 error codes in u8
authorDan Carpenter <error27@gmail.com>
Wed, 6 Jul 2011 18:57:18 +0000 (21:57 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:26 +0000 (23:28 +0200)
commitb03edb3716043b3f34d5082bdd33710971c9d5ce
treece482f6811a87c7b77fe7a69b080458fd89151c3
parent1dde5e04c67aa1b3fca850a3c24c684bfd95c5b6
regulator: Storing tps65912 error codes in u8

get_ctrl_reg() returns -EINVAL so the error handling won't work here
if reg is a u8.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/regulator/tps65912-regulator.c