mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
9111677212
commit
52263c476a
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue