summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/htc-i2cpld.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-03 17:19:15 -0700
committerLee Jones <lee.jones@linaro.org>2014-08-20 13:27:48 +0100
commit6065c9a472cc1a3c66a0a6a2b1b4143558c1361e (patch)
treeac59a24beaf2920d49efdf449e285fd486756a63 /drivers/mfd/htc-i2cpld.c
parentddde06b1816e78c871512cc1f29a4944a4197b5e (diff)
downloadop-kernel-dev-6065c9a472cc1a3c66a0a6a2b1b4143558c1361e.zip
op-kernel-dev-6065c9a472cc1a3c66a0a6a2b1b4143558c1361e.tar.gz
mfd: htc-i2cpld: Fix %d confusingly prefixed with 0x in format string
Signed-off-by: Hans Wennborg <hans@hanshq.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/htc-i2cpld.c')
-rw-r--r--drivers/mfd/htc-i2cpld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index b44f020..6bdb78c 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -404,7 +404,7 @@ static int htcpld_register_chip_i2c(
}
i2c_set_clientdata(client, chip);
- snprintf(client->name, I2C_NAME_SIZE, "Chip_0x%d", client->addr);
+ snprintf(client->name, I2C_NAME_SIZE, "Chip_0x%x", client->addr);
chip->client = client;
/* Reset the chip */
OpenPOWER on IntegriCloud