Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3495981pxf; Mon, 29 Mar 2021 04:01:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9Dw9NmGNtTO8vuA5GE0F5tP/D71FqsIA9X3opEfpZilOBIFc5M2DsyuAljLHna22aCRx7 X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr27362984ejc.2.1617015704472; Mon, 29 Mar 2021 04:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015704; cv=none; d=google.com; s=arc-20160816; b=hhkiw1yR0ySFxzK84UizZulLLERMUvpOu6AlOenvKRZMkN9bkuEP5UXTARMRgDBjHn sAItMpueAAFtalD3vlMhCqY8E2TU/3aPSTTW5+5hKMWh4LpVwK73pIrnVQ8drXUjt+gD qLdnrtP5ARX5aJStZNwql1TYmHbDf4NjnyzA/AbujAzOPR1Qf/IrIekBXrw1O81frrx9 p5pULs5hnplsD8CRPtLB/1B8F+GGIGW6duwqgIklQoOukiSmCJzgNPsQQgLXPzBFUMym jb9kB6c+E7DXevsSiUSNuFUKM7hPR5+SvtdeUIfZnTpWeLCvyQbwZ9uNP2l3e0Z9P+Sm /FwA== 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 :ironport-sdr:ironport-sdr; bh=XDB7wCJS4UHdGGSA+EXiDnolD6Id9Bq0loLRIJXOwIw=; b=Gl9LUT26KPYJ1YddyLI7CmF19mn9eT7hGkB9ZNISvFswPu2Ddxv8gb/EVMym8QrW8m +weuZ2gJqTmt/fIkAMBcucmOrMa+h07ZwijQpmUHGqnU73mjbFAUuOJ+9v97iZa0tQP9 28LQFeU6YsZq2EFiHwDP/bWXZCc/PsXCI+UGA1u6sqFBa6/Axi6nwWCJgilMI0DacQAA NgTe83GaEXR1ZCn3vcqBxwmuu+Gqjs9pW0yRc1/dECWMJCgwl9mFDNNMXlB9eQip4sbv QyGrPu0CC8KnYAMoYZKjc2j0wzeOJ0fAfycg8PuDYEGsOIxev1ZG4wrptejnuwH2UXQv YykA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si13023042edw.87.2021.03.29.04.01.22; Mon, 29 Mar 2021 04:01:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232775AbhC2KvQ (ORCPT + 99 others); Mon, 29 Mar 2021 06:51:16 -0400 Received: from mga02.intel.com ([134.134.136.20]:49552 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232711AbhC2Kux (ORCPT ); Mon, 29 Mar 2021 06:50:53 -0400 IronPort-SDR: an28CXjcbwRvWmkA8ZPOTatqnC7JNdLnPkV1I6tcl/PEp06GJFJh97MgbX6ximvVSL6mJjsZEE uEamjCvE1g6w== X-IronPort-AV: E=McAfee;i="6000,8403,9937"; a="178653649" X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="178653649" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 03:50:39 -0700 IronPort-SDR: OyK8IBaP138GcLAxk6LNP0ihsqSYYhTpPX2lNNTblyTO4Chg9unUYH8JUeBFH2HZ1CKCK2w84Q PjCo/eUnBjZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="515955840" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 29 Mar 2021 03:50:38 -0700 From: Heikki Krogerus To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Aaro Koskinen , Tony Lindgren Subject: [PATCH 03/12] ARM: omap1: osk: Constify the software node Date: Mon, 29 Mar 2021 13:50:38 +0300 Message-Id: <20210329105047.51033-4-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210329105047.51033-1-heikki.krogerus@linux.intel.com> References: <20210329105047.51033-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Additional device properties are always just a part of a software fwnode. If the device properties are constant, the software node can also be constant. Signed-off-by: Heikki Krogerus Cc: Aaro Koskinen Cc: Tony Lindgren --- arch/arm/mach-omap1/board-osk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 0a4c9b0b13b0c..e18b6f13300eb 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c @@ -332,11 +332,15 @@ static const struct property_entry mistral_at24_properties[] = { { } }; +static const struct software_node mistral_at24_node = { + .properties = mistral_at24_properties, +}; + static struct i2c_board_info __initdata mistral_i2c_board_info[] = { { /* NOTE: powered from LCD supply */ I2C_BOARD_INFO("24c04", 0x50), - .properties = mistral_at24_properties, + .swnode = &mistral_at24_node, }, /* TODO when driver support is ready: * - optionally ov9640 camera sensor at 0x30 -- 2.30.2