summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-max8997.c
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2021-05-31 16:34:35 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2021-06-21 12:28:00 +0300
commitd25b224f8e5507879b36a769a6d1324cf163466c (patch)
tree35d121af28ab98ab01aa98ca0fb3cc7872b02df5 /drivers/extcon/extcon-max8997.c
parentecb5bdff901139850fb3ca3ae2d0cccac045bc52 (diff)
downloadlinux-d25b224f8e5507879b36a769a6d1324cf163466c.tar.xz
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>
Diffstat (limited to 'drivers/extcon/extcon-max8997.c')
0 files changed, 0 insertions, 0 deletions