2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00

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: 27a28d32b4 ('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>
This commit is contained in:
Dan Carpenter 2015-03-15 13:49:47 +03:00 committed by Chanwoo Choi
parent 34825e5119
commit d927c59076

View File

@ -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: