Re: [PATCH v4 07/14] mfd: lm3533: Switch sysfs_create_group() to device_add_group()
Svyatoslav Ryhel <[email protected]>
| Newsgroups | org.kernel.vger.linux-fbdev,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel,org.kernel.vger.linux-leds |
|---|---|
| Message-ID | <CAPVz0n2+27QVeWNgPm3PH6V2Ceuym6sbMtUrh7hSHe9PcRmfMA@mail.gmail.com> |
вт, 9 черв. 2026 р. о 22:14 Andy Shevchenko <[email protected]> пише: > > 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. > Specify pls, device_add_group literally uses dev_groups, I don't understand what is wrong. > ... > > > + 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.) > In the prev iteration YOU asked to me to adjust this. I have adjusted and now you say that this is not appropriate. I will just drop this commit altogether. > > + if (ret < 0) > > + return dev_err_probe(&pdev->dev, ret, > > + "failed to create sysfs attributes\n"); > > -- > With Best Regards, > Andy Shevchenko > >