From 02af708d295dabf722efd33d92d7b09e014f22fc Mon Sep 17 00:00:00 2001
From: Christopher Obbard <chris.obbard@collabora.com>
Date: Wed, 4 Oct 2023 11:53:00 +0100
Subject: [PATCH] drivers: mfd: fusb302: Fix build errors

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
---
 drivers/mfd/fusb302.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/mfd/fusb302.c b/drivers/mfd/fusb302.c
index 33e652d125b3..3e2dbeef88fa 100644
--- a/drivers/mfd/fusb302.c
+++ b/drivers/mfd/fusb302.c
@@ -253,7 +253,7 @@ static int fusb302_set_pos_power_by_power_ic(struct fusb30x_chip* chip)
 		dev_info(chip->dev, "No power dev node \n");
 		return -1;
 	}
-	
+
 	ret = of_property_read_u32(pwr, "max-input-voltage", &val);
 	if (ret == 0)
 		max_vol = val / 1000;
@@ -268,7 +268,7 @@ static int fusb302_set_pos_power_by_power_ic(struct fusb30x_chip* chip)
 		fusb_set_pos_power(chip, max_vol, max_cur);
 
 	dev_err(chip->dev, "max vol cur %d %d \n", max_vol, max_cur);
-	
+
 	return 0;
 }
 
@@ -3346,8 +3346,7 @@ static void fusb302_work_func(struct work_struct *work)
 	state_machine_typec(chip);
 }
 
-static int fusb30x_probe(struct i2c_client *client,
-			 const struct i2c_device_id *id)
+static int fusb30x_probe(struct i2c_client *client)
 {
 	struct fusb30x_chip *chip;
 	struct PD_CAP_INFO *pd_cap_info;
@@ -3563,7 +3562,6 @@ static void fusb30x_remove(struct i2c_client *client)
 	struct fusb30x_chip *chip = i2c_get_clientdata(client);
 
 	destroy_workqueue(chip->fusb30x_wq);
-	return 0;
 }
 
 static void fusb30x_shutdown(struct i2c_client *client)
-- 
GitLab