summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-09-27 11:25:04 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-27 13:27:09 +0100
commitdfdc4448e078d06bdba0da52db7176437877788f (patch)
treecb48f01e263a969601e6bd79eaf9638f1d1de59f /drivers/base
parent25ed1156ddf99f6d8feb87d0992b2ecb1fef667a (diff)
downloadlinux-3.10-dfdc4448e078d06bdba0da52db7176437877788f.tar.gz
linux-3.10-dfdc4448e078d06bdba0da52db7176437877788f.tar.bz2
linux-3.10-dfdc4448e078d06bdba0da52db7176437877788f.zip
regmap: Fix signed/unsigned comparison
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regcache-indexed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-indexed.c b/drivers/base/regmap/regcache-indexed.c
index ff8b44ce044..268497aee46 100644
--- a/drivers/base/regmap/regcache-indexed.c
+++ b/drivers/base/regmap/regcache-indexed.c
@@ -41,7 +41,7 @@ static int regcache_indexed_write(struct regmap *map, unsigned int reg,
static int regcache_indexed_sync(struct regmap *map)
{
- int i;
+ unsigned int i;
int ret;
for (i = 0; i < map->num_reg_defaults; i++) {