Re: [RFC V1 1/3] hwmon: da9063: HWMON driver

From: Guenter Roeck
Date: Sun Mar 23 2014 - 23:28:08 EST


On 03/23/2014 01:37 PM, Opensource [Steve Twiss] wrote:
From: Opensource [Steve Twiss] <stwiss.opensource@xxxxxxxxxxx>

Add the HWMON driver for DA9063

Signed-off-by: Opensource [Steve Twiss] <stwiss.opensource@xxxxxxxxxxx>
---

+
+ ret = sysfs_create_group(&pdev->dev.kobj, &da9063_attr_group);
+ if (ret)
+ return ret;
+
+ hwmon->classdev = hwmon_device_register(&pdev->dev);
+ if (IS_ERR(hwmon->classdev)) {
+ sysfs_remove_group(&pdev->dev.kobj, &da9063_attr_group);
+ return PTR_ERR(hwmon->classdev);
+ }
+

Hi Steve,

This looks like an ideal candidate for devm_hwmon_device_register_with_groups().
Can you use that API, please ?

Thanks,
Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/