From patchwork Mon Sep 4 10:40:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13373706 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 87D7AC83F2C for ; Mon, 4 Sep 2023 10:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241850AbjIDKnK (ORCPT ); Mon, 4 Sep 2023 06:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233006AbjIDKnJ (ORCPT ); Mon, 4 Sep 2023 06:43:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5954191; Mon, 4 Sep 2023 03:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693824179; x=1725360179; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KG2QeDOlI8MHwoCPiPd6JfLSLSr0kBD/fqXSBY4+KyQ=; b=Uk6LKvYlA+UvUUUOjLLbyzwrv4wCfCtCkSLV3131fj9GmXa6V2Nz9UAq bwhQTiZPBsbpmmet5J1ulq7H0mT/n6RlEvBjaMEOIoEdy6iEz4Bf06pdk HIfRhChwvoDjoEv85vBOG38+ngdVAuyl583iFCeFVrV0bvTRO81InUgoO g8VFlvMZivQV3x2W+7vC2xetPV+P/MLsX8ZymjOy9aHoY6i/FIpUBTzeX St1rGEdxCgYDMF9Egvz6t4ON0FfexsaJg9DnXRfbDD5DGYgxcW70iCgla 6WhR8JKqmGeSvwaYkgOIi/y88p+HIuUYcDpxCKLnc3hhM2od8loocl/jp A==; X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="407570314" X-IronPort-AV: E=Sophos;i="6.02,226,1688454000"; d="scan'208";a="407570314" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 03:40:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="855567438" X-IronPort-AV: E=Sophos;i="6.02,226,1688454000"; d="scan'208";a="855567438" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 04 Sep 2023 03:40:49 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 0ED14892; Mon, 4 Sep 2023 13:40:47 +0300 (EEST) From: Andy Shevchenko To: Saravana Kannan , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Bartosz Golaszewski Subject: [PATCH v1 1/1] device property: Clarify usage scope of some struct fwnode_handle members Date: Mon, 4 Sep 2023 13:40:46 +0300 Message-Id: <20230904104046.1682875-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Most of the struct fwnode_handle members are for exclusive use with device links framework. Clarify this by adding a respective comment. Signed-off-by: Andy Shevchenko Reviewed-by: Heikki Krogerus Reviewed-by: Sakari Ailus --- include/linux/fwnode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h index 5700451b300f..2a72f55d26eb 100644 --- a/include/linux/fwnode.h +++ b/include/linux/fwnode.h @@ -41,6 +41,8 @@ struct device; struct fwnode_handle { struct fwnode_handle *secondary; const struct fwnode_operations *ops; + + /* The below is used solely by device links, don't use otherwise */ struct device *dev; struct list_head suppliers; struct list_head consumers;