Messages in this thread | | | Date | Tue, 19 Dec 2023 17:03:10 +0200 | From | Andy Shevchenko <> | Subject | Re: [PATCH] driver core: bus: constantify subsys_register() calls |
| |
On Tue, Dec 19, 2023 at 02:15:09PM +0100, Greg Kroah-Hartman wrote: > The functions subsys_register() and subsys_virtual_register() should be > taking a constant pointer to a struct bus_type, as they do not actually > modify anything in it, so fix up the function definitions to do so > properly. > > This also changes the pointer type in struct subsys_interface to be > constant as well, as again, that's the proper signature of it.
And they don't return any pointers, so no room for a mistake, and even less with this patch! Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-- With Best Regards, Andy Shevchenko
| |