From: Dimitris Papastamos Date: Tue, 27 Sep 2011 10:25:04 +0000 (+0100) Subject: regmap: Fix signed/unsigned comparison X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dfdc4448e078d06bdba0da52db7176437877788f;p=linux-beck.git regmap: Fix signed/unsigned comparison Signed-off-by: Dimitris Papastamos Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regcache-indexed.c b/drivers/base/regmap/regcache-indexed.c index ff8b44ce044b..268497aee46d 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++) {