Thread (37 messages) 37 messages, 3 authors, 20d ago

Re: [PATCH v4 07/14] mfd: lm3533: Switch sysfs_create_group() to device_add_group()

From: Andy Shevchenko <hidden>
Date: 2026-06-09 19:14:09
Also in: dri-devel, linux-devicetree, linux-iio, linux-leds, lkml

On Sat, Jun 06, 2026 at 07:57:31AM +0300, Svyatoslav Ryhel wrote:
Switch from sysfs_create_group() to device_add_group() including device
managed where appropriate.
This should use .dev_groups member of struct device_driver.

...
+	ret = devm_device_add_group(&bd->dev, &lm3533_bl_attribute_group);
This will make Greg KH very grumpy. (For the record, original code as well
but it already is in upstream. So, thanks for trying to address this, just
needs a bit more of work.)
+	if (ret < 0)
+		return dev_err_probe(&pdev->dev, ret,
+				     "failed to create sysfs attributes\n");
-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help