media: si21xx: report eventual errors at set_frontend
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 12:30:55 +0000 (12:30 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 29 Nov 2021 12:23:14 +0000 (13:23 +0100)
commit68cfde02cc21045708ad1ebe604527ec18d5e01c
tree1333f8e0fad01123b3969800cf3f3df60a7c918f
parentc41898e84dade305c13d2073c785009d6414631d
media: si21xx: report eventual errors at set_frontend

If an error occurs while setting the registers at set_frontend,
it is silently ignored. Yet, the variable status is updated.

Change the logic to return an error if it fails to write values
to the registers.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/si21xx.c