Re: [PATCH 1/7] driver core: core: move to use class_to_subsys()

From: Greg Kroah-Hartman
Date: Fri Mar 31 2023 - 11:44:58 EST


On Fri, Mar 31, 2023 at 12:26:34PM +0200, Rafael J. Wysocki wrote:
> On Fri, Mar 31, 2023 at 11:33 AM Greg Kroah-Hartman
> <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >
> > There are a number of places in core.c that need access to the private
> > subsystem structure of struct class, so move them to use
> > class_to_subsys() instead of accessing it directly.
> >
> > This requires exporting class_to_subsys() out of class.c, but keeping it
> > local to the driver core.
> >
> > Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>
> Reviewed-by: Rafael J. Wysocki <rafael@xxxxxxxxxx>

Thanks for the quick review!