Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 914b881f9452 ("extcon: sm5502: Add support new SM5502 extcon device driver")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Stephan Gerhold and committed by
Chanwoo Choi
d25b224f ecb5bdff

-1
-1
drivers/extcon/extcon-sm5502.c
··· 88 88 | SM5502_REG_INTM2_MHL_MASK, 89 89 .invert = true, 90 90 }, 91 - { } 92 91 }; 93 92 94 93 /* List of detectable cables */