Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp664074pxb; Wed, 6 Oct 2021 12:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg7v5rYYxv2emOFnLAeCWkuhI2LogLm/GMG2kZtCMp36COjtJwtenFamX3JaZ+zmunVMQs X-Received: by 2002:a62:6541:0:b0:44c:2988:7d9d with SMTP id z62-20020a626541000000b0044c29887d9dmr26094766pfb.50.1633549374309; Wed, 06 Oct 2021 12:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633549374; cv=none; d=google.com; s=arc-20160816; b=lmWBoyJmMeJ4Cq5ptYjbyboMAhxCpMKUjZW8ZYvjedYhUauLK52OdsoyZpcqOgob+1 nmPjOLg1mERyLi85XGWMdZrUURhWCj3YbVurP1Nwow6tAzOipXWpY7rb25FzTjJ+i5/5 2PtCnGVo2wyIRHQyS69VBP/YKyxaqcpSf5ZrG+ajNlKz1LLOmUh582L395ZO3reQyr/S L1QH2+mVTSXpJbtBgSnrOOH9i/7VpPBXNSDHrEGa940yod5p+9zcXGgjq2JSanuEMMdb jLrTPCnptBJ1x059Tjv6FNP1Lbj6x4lYD2eXvl4PYZxVP8a6OqSAbxJUEFB48pS+qSkH skmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ot2+ntvoFG4rsH4e1sE1QMW5zjuXqRNCEhlTLCik2wM=; b=FhS1ucoIHNhLg28eSnC9+EhY/ssLWskgoj6b2Da8VMnV7sm89jfjlPuGQMLQ+WL0io Ab57GRkwIl9VhqUSkOxMQbkd/+f7P9JjfaMLEUDZeoZCmhzwvdZGserUW5tVi/xWTw7o SYnZMlNA4FLzlFaIY9R44VhARsJk8kf0OeWLQI0+/7kDmvrM+/G/zrTF+uG6Jw1kpnG2 5lfBurdcH6gYACFL2bvxMG0JR8OVsrmF1RD8XVSsVm/G3lfc/TiQobWQwnrho0yjFLP4 AEwaxiQOPwrfSI2vOps/p+ozliRivB1DFe9Y1cRk+K6knnbUd8JWpgkS2M/S2CD9wzMJ kOhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZMhQIHtN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x191si10965961pfd.28.2021.10.06.12.42.41; Wed, 06 Oct 2021 12:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZMhQIHtN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239773AbhJFTmf (ORCPT + 99 others); Wed, 6 Oct 2021 15:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239561AbhJFTmO (ORCPT ); Wed, 6 Oct 2021 15:42:14 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E8FC061760 for ; Wed, 6 Oct 2021 12:39:03 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id ls18-20020a17090b351200b001a00250584aso4710808pjb.4 for ; Wed, 06 Oct 2021 12:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ot2+ntvoFG4rsH4e1sE1QMW5zjuXqRNCEhlTLCik2wM=; b=ZMhQIHtNA4/kV1vlNC99CTawkyKetOhHUYakJmO72VYU9TrfpZBzPPLUDYYFReVk3e Pom8N145OWgM8buTFKaH7OBf+pPgQzvJcfKcEX4AjvV0g0cy0C30dy8iPjzkw5jEF8z3 R5paxhucwDP6aHXmIJicXt2jbvOk9XRtrlCMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ot2+ntvoFG4rsH4e1sE1QMW5zjuXqRNCEhlTLCik2wM=; b=Z3gEeQsoa6pA/xGBNWqwXlqkvvzU2JwxhHKeP24s3bAVSBvWOA3nNX9teWDYqgS8Lv FHLZIScCdT9b+HwriYPZ/c0Rmv8iHP3j6Q06nQrKMKK1+0LU8SZbM8g8IrPz+CJs8jyH 5LhFP9Rc2KPuXkRVRJ/sp7l0fNk6J6q99ZZP93QhoLbJND0KYbi3vcT5DUS0RZAodCUV DfEbI56lOLBR6H4i4eFqhdpY4EiXkp6Qu70b20hOfDil+5be4CL0Fd3stcfxAWiUe0Rw W9YFqoW7mGoJ4BTl4jYGAVNdr+C3r0L7m8j1H695sy0KMv44iGSOuKMXzwDlmxFanPn8 Dong== X-Gm-Message-State: AOAM532e+wgKi7Jbrp5f8W93rhczSuAOH4aYN8ljqQTlMhXSuHZlcFsx KpLDnjKNd0LLCXBjbtIOqXsg6w== X-Received: by 2002:a17:90b:1b0b:: with SMTP id nu11mr80066pjb.103.1633549142676; Wed, 06 Oct 2021 12:39:02 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:d412:c5eb:4aca:4738]) by smtp.gmail.com with ESMTPSA id o14sm22011296pfh.84.2021.10.06.12.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 12:39:02 -0700 (PDT) From: Stephen Boyd To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Daniel Vetter , "Rafael J. Wysocki" , Rob Clark , Russell King , Saravana Kannan Subject: [PATCH v2 34/34] component: Remove all references to 'master' Date: Wed, 6 Oct 2021 12:38:19 -0700 Message-Id: <20211006193819.2654854-35-swboyd@chromium.org> X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog In-Reply-To: <20211006193819.2654854-1-swboyd@chromium.org> References: <20211006193819.2654854-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove all references to 'master' in the code now that we've migrated all the users of the ops structure to the aggregate driver. Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- drivers/base/component.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index 939862b25b10..75323d35773c 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -1,11 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* * Componentized device handling. - * - * This is work in progress. We gather up the component devices into a list, - * and bind them when instructed. At the moment, we're specific to the DRM - * subsystem, and only handles one master device, but this doesn't have to be - * the case. */ #include #include @@ -119,23 +114,23 @@ static int __init component_debug_init(void) core_initcall(component_debug_init); -static void component_master_debugfs_add(struct aggregate_device *m) +static void component_debugfs_add(struct aggregate_device *m) { debugfs_create_file(dev_name(m->parent), 0444, component_debugfs_dir, m, &component_devices_fops); } -static void component_master_debugfs_del(struct aggregate_device *m) +static void component_debugfs_del(struct aggregate_device *m) { debugfs_remove(debugfs_lookup(dev_name(m->parent), component_debugfs_dir)); } #else -static void component_master_debugfs_add(struct aggregate_device *m) +static void component_debugfs_add(struct aggregate_device *m) { } -static void component_master_debugfs_del(struct aggregate_device *m) +static void component_debugfs_del(struct aggregate_device *m) { } #endif @@ -343,7 +338,7 @@ EXPORT_SYMBOL(component_match_add_release); * @compare_typed: compare function to match against all typed components * @compare_data: opaque pointer passed to the @compare function * - * Adds a new component match to the list stored in @matchptr, which the @master + * Adds a new component match to the list stored in @matchptr, which the * aggregate driver needs to function. The list of component matches pointed to * by @matchptr must be initialized to NULL before adding the first match. This * only matches against components added with component_add_typed(). @@ -367,7 +362,7 @@ static void free_aggregate_device(struct aggregate_device *adev) struct component_match *match = adev->match; int i; - component_master_debugfs_del(adev); + component_debugfs_del(adev); if (match) { for (i = 0; i < match->num; i++) { @@ -548,7 +543,7 @@ static struct aggregate_device *aggregate_device_add(struct device *parent, return ERR_PTR(ret); } - component_master_debugfs_add(adev); + component_debugfs_add(adev); return adev; } -- https://chromeos.dev