Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d927c590 authored by Dan Carpenter's avatar Dan Carpenter Committed by Chanwoo Choi
Browse files

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: 27a28d32 ('extcon: max77843: Add max77843 MUIC driver')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
[cw00.choi: Fix the patch description]
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 34825e51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: