[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180703193515.4379-1-mamlinav@gmail.com>
Date: Tue, 3 Jul 2018 22:35:15 +0300
From: Aleksei Mamlin <mamlinav@...il.com>
To: Jean Delvare <jdelvare@...e.com>
Cc: Guenter Roeck <linux@...ck-us.net>, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org, Aleksei Mamlin <mamlinav@...il.com>
Subject: [PATCH] hwmon: w83795: Convert to hwmon_device_register_with_info()
This patch replaces deprecated call to hwmon_device_register() with the new
hwmon_device_register_with_info().
Signed-off-by: Aleksei Mamlin <mamlinav@...il.com>
---
drivers/hwmon/w83795.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/hwmon/w83795.c b/drivers/hwmon/w83795.c
index 49276bbdac3d..25bcf988ef1c 100644
--- a/drivers/hwmon/w83795.c
+++ b/drivers/hwmon/w83795.c
@@ -2234,7 +2234,8 @@ static int w83795_probe(struct i2c_client *client,
if (data->chip_type == w83795g)
w83795_check_dynamic_in_limits(client);
- data->hwmon_dev = hwmon_device_register(dev);
+ data->hwmon_dev = hwmon_device_register_with_info(dev, client->name,
+ data, NULL, NULL);
if (IS_ERR(data->hwmon_dev)) {
err = PTR_ERR(data->hwmon_dev);
goto exit_remove;
--
2.16.4
Powered by blists - more mailing lists