From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6780AC761AF for ; Fri, 31 Mar 2023 15:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232959AbjCaPo5 (ORCPT ); Fri, 31 Mar 2023 11:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjCaPoy (ORCPT ); Fri, 31 Mar 2023 11:44:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613F02063A for ; Fri, 31 Mar 2023 08:44:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F0514B83081 for ; Fri, 31 Mar 2023 15:44:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 163E1C4339C; Fri, 31 Mar 2023 15:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680277474; bh=YB72uFE1fdkW6+uOgpZzxMBlcxb4C+4qQ9J1ORXVSwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YBwSeEcMvenMTjvIJ/+s3lgn7aTLz4gtWNCTRnTdE+q1XrpHdy9LRpClKQUczkhv0 X1BdiwLh53xrtQHT5XjSzoF16qSkFSsmCENSbHUZ44ZNxMrObAlA9UCUC/NfL/Z9XQ COEkLvv2SAAbsdggHz2H0jEjYeuGWWq9XNXQ6CBY= Date: Fri, 31 Mar 2023 17:44:31 +0200 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] driver core: core: move to use class_to_subsys() Message-ID: References: <20230331093318.82288-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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" > > Signed-off-by: Greg Kroah-Hartman > > Reviewed-by: Rafael J. Wysocki Thanks for the quick review!