Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3495561pxf; Mon, 29 Mar 2021 04:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuYRFpPdHRiM+fFNAZi6SGa/b5fHPSpMiwdTfKchIwJXYy5/LFYEdCeptV17n5tKRqI1Ye X-Received: by 2002:a50:eb8f:: with SMTP id y15mr28120447edr.115.1617015674645; Mon, 29 Mar 2021 04:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015674; cv=none; d=google.com; s=arc-20160816; b=IeT1+6QzabS96CYiZJI9BgKb/5edX2HQY/NnJS66VHhfyJZdzfwWp4rofC2YmEIelI yZ4ZyF6DEkTpC9X8ponIRZc9sQCIC8NvDX7bUXjJhCifanDf4+3D70Dut3EPAowsR7WT 4VRAu9iQWgaeav2kL/qvy6ZZ02ckCgdz84WEkjf3wdSkQqUlQxROryU0OLimAU7HsLWr yhZrrTaTIccgD0HRcauaOsEV/5u/rex9GoJHX946ZVRTa/BuJEgeALs7qjXBBQG5ta64 0n6Y660P2gLw46vK5Dt+P6sNst6grA/tVrixnnFHMdpvZFrcIqrAjRbSEypWOMDIOyRj b60w== 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=VI0Zgio9W5C/07udXA5C/jCZTv4J8xYfzPvvJGY/csc=; b=aiCkQrymGEIzEtlV8epsFV2rEmW2LkHR0LbKrz/aL7jrsGUwZQNdNZGaiweGjdB37a O5m5Gnx44pysDM8otwIDychXTjcU8aSg6Ofv9mkjQuNIptvD2MoILBmi519OnQqUzktN AJroxK4NU4w3P/nnYQZS8omCdShCqpBnMQSC+kQbGAVbcgjPHp+iSS9PHD8L3J8asTUM GMEWVAS+KFhP8JU/Nx6tcr0B/jPadlItSSKdIV/+6YtX2Knljz84OQ3ZCTbUUqsNE5PB G2ISZ6rRXTAn9luNPE0kDnilNfJXdJ5tklrevA77sSGH6a4L7hTdicI8hhSgnZ0xczbu yT2w== 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 hq38si12347726ejc.350.2021.03.29.04.00.52; Mon, 29 Mar 2021 04:01:14 -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 S232835AbhC2KvU (ORCPT + 99 others); Mon, 29 Mar 2021 06:51:20 -0400 Received: from mga02.intel.com ([134.134.136.20]:49554 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbhC2Kuy (ORCPT ); Mon, 29 Mar 2021 06:50:54 -0400 IronPort-SDR: Cp9QTvfd9dgeyttB8KbHZMXALOCqwrOHJIc0XCYB4Xzqp5HMRro/5ov3d1dzb/vpKj+88lcJEL 6Fq6K7KBe+ow== X-IronPort-AV: E=McAfee;i="6000,8403,9937"; a="178653654" X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="178653654" 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:42 -0700 IronPort-SDR: TZbSW3VbsbB3RsTgWPUgwer6h2wM55cP8asShMLjlLkg69BfjRyF5y5Z8yYHITUdu6Xf8EKjsg CrO+jqXAERJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,287,1610438400"; d="scan'208";a="515955848" 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:40 -0700 From: Heikki Krogerus To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH 04/12] ARM: pxa: stargate2: Constify the software node Date: Mon, 29 Mar 2021 13:50:39 +0300 Message-Id: <20210329105047.51033-5-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: Jonathan Cameron Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik --- arch/arm/mach-pxa/stargate2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c index e2353f7dcf01a..7ad6274657686 100644 --- a/arch/arm/mach-pxa/stargate2.c +++ b/arch/arm/mach-pxa/stargate2.c @@ -794,6 +794,10 @@ static const struct property_entry pca9500_eeprom_properties[] = { { } }; +static const struct software_node pca9500_eeprom_node = { + .properties = pca9500_eeprom_properties, +}; + /** * stargate2_reset_bluetooth() reset the bluecore to ensure consistent state **/ @@ -929,7 +933,7 @@ static struct i2c_board_info __initdata stargate2_i2c_board_info[] = { }, { .type = "24c02", .addr = 0x57, - .properties = pca9500_eeprom_properties, + .swnode = &pca9500_eeprom_node, }, { .type = "max1238", .addr = 0x35, -- 2.30.2