usb: typec: mmi_tcpc: Fix unused variable errors

Change-Id: Ie11f06aded3d483cc5bcb73e79930317ab09e37f
Signed-off-by: electimon <electimon@gmail.com>
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
This commit is contained in:
electimon 2023-06-11 23:33:33 -04:00 • committed by Michael Bestas
commit 52263c476a
No known key found for this signature in database

View file

@ -176,7 +176,7 @@ static int rt1711_read_device(void *client, u32 reg, int len, void *dst)
{
struct i2c_client *i2c = client;
int ret = 0, count = 5;
u64 t1 = 0, t2 = 0;
u64 __maybe_unused t1 = 0, t2 = 0;
while (1) {
t1 = local_clock();
@ -197,7 +197,7 @@ static int rt1711_write_device(void *client, u32 reg, int len, const void *src)
{
struct i2c_client *i2c = client;
int ret = 0, count = 5;
u64 t1 = 0, t2 = 0;
u64 __maybe_unused t1 = 0, t2 = 0;
while (1) {
t1 = local_clock();
@ -786,13 +786,13 @@ static inline int rt1711_fault_status_vconn_ov(struct tcpc_device *tcpc)
int rt1711_fault_status_clear(struct tcpc_device *tcpc, uint8_t status)
{
int ret;
int ret = 0;
if (status & TCPC_V10_REG_FAULT_STATUS_VCONN_OV)
ret = rt1711_fault_status_vconn_ov(tcpc);
rt1711_i2c_write8(tcpc, TCPC_V10_REG_FAULT_STATUS, status);
return 0;
return ret;
}
int rt1711_get_chip_id(struct tcpc_device *tcpc, uint32_t *chip_id)