mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-24 16:57:02 +00:00
[as4610] Replace hwmon_device_register() with hwmon_device_register_with_info()
This commit is contained in:
@@ -461,7 +461,8 @@ static int ym2651y_probe(struct i2c_client *client,
|
||||
goto exit_free;
|
||||
}
|
||||
|
||||
data->hwmon_dev = hwmon_device_register(&client->dev);
|
||||
data->hwmon_dev = hwmon_device_register_with_info(&client->dev, "ym2651y",
|
||||
NULL, NULL, NULL);
|
||||
if (IS_ERR(data->hwmon_dev)) {
|
||||
status = PTR_ERR(data->hwmon_dev);
|
||||
goto exit_remove;
|
||||
|
||||
@@ -262,7 +262,8 @@ static int as4610_fan_probe(struct platform_device *pdev)
|
||||
|
||||
}
|
||||
|
||||
fan_data->hwmon_dev = hwmon_device_register(&pdev->dev);
|
||||
fan_data->hwmon_dev = hwmon_device_register_with_info(&pdev->dev, "as4610_fan",
|
||||
NULL, NULL, NULL);
|
||||
if (IS_ERR(fan_data->hwmon_dev)) {
|
||||
status = PTR_ERR(fan_data->hwmon_dev);
|
||||
goto exit_remove;
|
||||
|
||||
@@ -135,7 +135,8 @@ static int as4610_psu_probe(struct i2c_client *client,
|
||||
goto exit_free;
|
||||
}
|
||||
|
||||
data->hwmon_dev = hwmon_device_register(&client->dev);
|
||||
data->hwmon_dev = hwmon_device_register_with_info(&client->dev, "as4610_psu",
|
||||
NULL, NULL, NULL);
|
||||
if (IS_ERR(data->hwmon_dev)) {
|
||||
status = PTR_ERR(data->hwmon_dev);
|
||||
goto exit_remove;
|
||||
|
||||
Reference in New Issue
Block a user