Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5352371ybl; Tue, 4 Feb 2020 12:18:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwfHsm2SufI/A/UOeHePhpBEqex9iOQ1neO5wq3YduofdT1yMa5L5yZYOa9cV9Oq6zlCHAR X-Received: by 2002:a05:6830:612:: with SMTP id w18mr23770675oti.160.1580847495910; Tue, 04 Feb 2020 12:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580847495; cv=none; d=google.com; s=arc-20160816; b=Rj2UHm61QxdXBCF7/VNgUOYtgTS4cN+2nYBveqwoHL4XTR7H4tEQj5hnoZ5uzG0+ag 7kh7DXg8iKFGVFL1t/yXbAf5ES0MofM3HEQVePZ2PHwNfUf3wDL4Anj7KktaXchr/Aq1 81G0tj5g2AI+R1P87lr2/WUsQXjGGGQ402Sl4nAJnGGQUSa/MvigUGwZrv9OCMJp2Ajl p/6AO/cdmu7vclLEzo3NZGml+3DBZ8uIR+dC5v3RZjcgoIt0rsP4gngJk/pM75LMOf/i jRq5MqB1Zfde24XAcaGYH/KG7UuLycVOvEsNbQ18ufWRlAs7A7seakhn+zjO15B7pXNQ gozw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lgpajxNikSQVcMwpbzZlLY8yEkhh9Mn5RqG30E19yUY=; b=PMIfb55l1c50m9tD11h1Eq+t55Qf9aDizVLBCFnKP6Nwr57KBB14Q8ibF6ONPOXOa+ VW7FS+iFOla/c15yQgDeS2yoPuAVa7QRMimA4gVs5Q7VKEXpo6Jg49AwlKAeiRB/LJ1u 0qKl5rB61qAd1RiIxLjcEwkdZdX50Mak7H28OzONUGEAEdlwaFe3bkBVrHSM2E8He8LK zosp2c1W7mSpJyy90weD7KRjzRCA9yPAt/LijX/HMiUXmFu2rCPVGD14/oXvWV5jL9NL yh1xNznBervUIEH07ifHwcb6QhQ1v6Bpptvi4mAWfu/pRXndg+sWyBUTwNuM1aLMqCgv HKdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t20si11119433otr.64.2020.02.04.12.18.01; Tue, 04 Feb 2020 12:18:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727458AbgBDURA (ORCPT + 99 others); Tue, 4 Feb 2020 15:17:00 -0500 Received: from mga14.intel.com ([192.55.52.115]:44172 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727314AbgBDURA (ORCPT ); Tue, 4 Feb 2020 15:17:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2020 12:17:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,403,1574150400"; d="scan'208";a="219867019" Received: from twinkler-lnx.jer.intel.com ([10.12.91.155]) by orsmga007.jf.intel.com with ESMTP; 04 Feb 2020 12:16:57 -0800 From: Tomas Winkler To: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH] mfd: constify properties in mfd_cell Date: Tue, 4 Feb 2020 22:16:51 +0200 Message-Id: <20200204201651.15778-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Constify 'struct property_entry *properties' in mfd_cell and platform_device. It is always passed around as a pointer const struct. Signed-off-by: Tomas Winkler --- include/linux/mfd/core.h | 2 +- include/linux/platform_device.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index d01d1299e49d..7e5ac3c00891 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h @@ -70,7 +70,7 @@ struct mfd_cell { size_t pdata_size; /* device properties passed to the sub devices drivers */ - struct property_entry *properties; + const struct property_entry *properties; /* * Device Tree compatible string diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 276a03c24691..8e83c6ff140d 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -89,7 +89,7 @@ struct platform_device_info { size_t size_data; u64 dma_mask; - struct property_entry *properties; + const struct property_entry *properties; }; extern struct platform_device *platform_device_register_full( const struct platform_device_info *pdevinfo); -- 2.21.1