[PATCH] hwmon: (hs3001) Switch to use i2c_driver's probe callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The previous mass switch of hwmon drivers done in commit 1975d167869e
("hwmon: Switch i2c drivers back to use .probe()") was based on
v6.4-rc1. Since then this driver was added which needs to be converted
back in the same way before eventually .probe_new() can be dropped from
struct i2c_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
Hello,

this driver appeared in next today. It would be great if this patch
could be added on top to not interfere with the quest to remove
.probe_new directly after v6.6-rc1.

Thanks
Uwe

 drivers/hwmon/hs3001.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/hs3001.c b/drivers/hwmon/hs3001.c
index 9972f6bbb22a..ac574e46d069 100644
--- a/drivers/hwmon/hs3001.c
+++ b/drivers/hwmon/hs3001.c
@@ -231,7 +231,7 @@ static struct i2c_driver hs3001_i2c_driver = {
 		   .name = "hs3001",
 		   .of_match_table = hs3001_of_match,
 	},
-	.probe_new = hs3001_probe,
+	.probe = hs3001_probe,
 	.id_table = hs3001_ids,
 };
 

base-commit: c944c8c532f7bd6d9e52ee3e2e97dcdd9c6014c0
-- 
2.39.2




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux