Commit 32d41be5 authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

media: tc358743: Check I2C succeeded during probe.



The probe for the TC358743 reads the CHIPID register from
the device and compares it to the expected value of 0.
If the I2C request fails then that also returns 0, so
the driver loads thinking that the device is there.

Generally I2C communications are reliable so there is
limited need to check the return value on every transfer,
therefore only amend the one read during probe to check
for I2C errors.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent e676070a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment