]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Fix more undefined twl4030-power resconfig value checks
authorAmit Kucheria <amit.kucheria@verdurent.com>
Wed, 21 Oct 2009 11:49:22 +0000 (14:49 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:30 +0000 (19:21 +0100)
commit4a990dcde615e310521bbbeff21236e48567e61c
tree2915a777055177360eb45e0097ca2b9bfda17f00
parent1411c687f9860f280888a9704443ddb4c6f7b59d
mfd: Fix more undefined twl4030-power resconfig value checks

Based on Aaro's previous fix, this needs to be fixed for the newly added
remap_off and remap_sleep resources as well.

The code tries to skip values initialized with -1, but since the values
are unsigned the comparison is always true.

The patch eliminates the following compiler warnings:

drivers/mfd/twl4030-power.c: In function 'twl4030_configure_resource':
drivers/mfd/twl4030-power.c:338: warning: comparison is always true due to
limited range of data type

Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-power.c