OSDN Git Service

media: cec: seco: remove byte handling from smb_word_op
authorTom Rix <trix@redhat.com>
Sat, 12 Mar 2022 15:48:45 +0000 (16:48 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:17 +0000 (11:02 +0200)
commit97f05aad997567fa3e6301bf92074f501f8d01a3
tree851cc89cd7b39ac35d92505bc548999250c5bbc9
parentd2facee67b4883bb3e7461a0a93fd70d0c7b7261
media: cec: seco: remove byte handling from smb_word_op

smb_word_op() has a parameter data_format that
determines if the data is either a byte or
word.  From inspection, smb_word_op() is only
used by the macros smb_wr16() and smb_rd16()
both pass in CMD_WORD_DATA. There is no use of
smb_word_op() that passes in CMD_BYTE_DATA.
So remove the byte handling.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/platform/seco/seco-cec.c