diff options
-rw-r--r-- | driver/retimer/pi3hdx1204.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/driver/retimer/pi3hdx1204.c b/driver/retimer/pi3hdx1204.c index 04e70013aa..3b0d80609f 100644 --- a/driver/retimer/pi3hdx1204.c +++ b/driver/retimer/pi3hdx1204.c @@ -24,8 +24,14 @@ int pi3hdx1204_enable(const int i2c_port, [PI3HDX1204_VOD_OFFSET] = pi3hdx1204_tuning.vod_offset, [PI3HDX1204_DE_OFFSET] = pi3hdx1204_tuning.de_offset, }; + int rv; - return i2c_xfer(i2c_port, i2c_addr_flags, - buf, PI3HDX1204_DE_OFFSET + 1, - NULL, 0); + rv = i2c_xfer(i2c_port, i2c_addr_flags, + buf, PI3HDX1204_DE_OFFSET + 1, + NULL, 0); + + if (rv) + ccprints("pi3hdx1204 enable failed: %d", rv); + + return rv; } |