aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-03-15 13:49:47 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2015-03-16 13:15:00 +0900
commitd927c59076f505a056e78a9fc9744069aa052cc8 (patch)
tree79b9203ffc3db295708672be1663c731ec0013ec /drivers/extcon
parentextcon: Fix the checkpatch warning (diff)
downloadlinux-dev-d927c59076f505a056e78a9fc9744069aa052cc8.tar.xz
linux-dev-d927c59076f505a056e78a9fc9744069aa052cc8.zip
extcon: max77843: Fix signedness bug in max77843_muic_set_debounce_time()
This patch fixes the variable type of 'ret' from 'unsigned int' to 'int' type because the return type of regmap_update_bits() is 'int' type. Fixes: 27a28d32b4f2 ('extcon: max77843: Add max77843 MUIC driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> [cw00.choi: Fix the patch description] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-max77843.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-max77843.c b/drivers/extcon/extcon-max77843.c
index 598a017cc91b..a3f80ca4a6e3 100644
--- a/drivers/extcon/extcon-max77843.c
+++ b/drivers/extcon/extcon-max77843.c
@@ -682,7 +682,7 @@ static int max77843_muic_set_debounce_time(struct max77843_muic_info *info,
enum max77843_muic_adc_debounce_time time)
{
struct max77843 *max77843 = info->max77843;
- unsigned int ret;
+ int ret;
switch (time) {
case MAX77843_DEBOUNCE_TIME_5MS: