[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZYGwrrNH2EbB_mOM@smile.fi.intel.com>
Date: Tue, 19 Dec 2023 17:03:10 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, "Rafael J. Wysocki" <rafael@...nel.org>
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@...ux.intel.com>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists