Commit d25b224f authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Chanwoo Choi
Browse files

extcon: sm5502: Drop invalid register write in sm5502_reg_data



When sm5502_init_dev_type() iterates over sm5502_reg_data to
initialize the registers it is limited by ARRAY_SIZE(sm5502_reg_data).
There is no need to add another empty element to sm5502_reg_data.

Having the additional empty element in sm5502_reg_data will just
result in writing 0xff to register 0x00, which does not really
make sense.

Fixes: 914b881f ("extcon: sm5502: Add support new SM5502 extcon device driver")
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent ecb5bdff
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ static struct reg_data sm5502_reg_data[] = {
			| SM5502_REG_INTM2_MHL_MASK,
		.invert = true,
	},
	{ }
};

/* List of detectable cables */