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

Add the HWMON driver for DA9063

Signed-off-by: Opensource [Steve Twiss] <stwiss.opensou...@diasemi.com>
---

+
+       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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to