media: dw2102: return -EIO instead of -1 for mac address read errors
authorMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 13 May 2023 07:04:32 +0000 (08:04 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 14 May 2023 15:05:28 +0000 (16:05 +0100)
commitb37d9c995aef9487040d07326c9e7e560cf23396
treee7cd063d2282383173a26388b003301c5fd3966a
parent663e7460b123271c64be7024cadef86dbb4d8463
media: dw2102: return -EIO instead of -1 for mac address read errors

The dvb-usb core function only checks if the returned value is
zero, so it doesn't actually matter the error code. Still, returning
-1 as an error condition is something that we don't do upstream. So,
change the logic to return -EIO in case of I2C transfer failures.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/dvb-usb/dw2102.c