Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1196329ybk; Sat, 16 May 2020 04:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzM8mFu2Vq9oS55ePOfA1s+WhouYbof2CTQJ3LxpFtuGUL32ZvRyoRW80YCTPObLDqSuO6 X-Received: by 2002:aa7:c1c5:: with SMTP id d5mr6013371edp.183.1589627302592; Sat, 16 May 2020 04:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589627302; cv=none; d=google.com; s=arc-20160816; b=hqZw/VAHkWp2ApcDYCeRrLyCynRsW6cw4yiyNmyH5L/AJYnKmtxotcHcI8Iwg5M4g7 Sqnjvkp9YIvX/jRMb3k8xJMK3Gioqg6K2nV7q4T1zv509UyfrRegtiqoX4qaPDxdkt7D OMQ+ChUbfebYOHCvEnkiGWggmUmVaHbxeBsBOxwxF+stOMtVKGtQrRQ3Y7NaMNG2FmkD /Yu6M7ibPHB4dosFCBjYb/DABZdnqUTSzB28QUkvzV7AR0wOc7u1hdgMiAxnM4xZvLAo 8Cau94xR2FUrYVaqNHRvssrxNAwaq9Um/cGluwR/bQ0Uc+0rh4u5bvcgZv9tu1Js/YK8 jKdg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=GpIZtYoAIDSKcNGIBUttJ1JIReibpFdYlCq/IfrK5kQ=; b=dzF2cMJ5faHZDzlc9W8gHHiUxiqX12xVWupazKNAYqlewuG/B41VcQOUJzUB+92fJS NacBXgA4dikAT+cBI5pa5L9GkCXsIzxq2uaSzOxEsTZVKVMVb455ewZ5RAkJpMYkREZ9 e247j/mwC/mxtpzpbi05WXy3fkbTgwmcRz/cfBEg3E7U9PlctBJkp0/YMOD1UJRxcnSg W4xpxms7wRwORp9JrS73jAwfmawxOUlS991EdTx0mJ/BKke8jKvRrjGqcOeT/3tPBxw3 wWG+UgnU++ZCvFxTl3pL1TlbZ5P/3avhREKsCpc3Wg+bBZT4TaHtcKavzXWLy8AHvln8 PHpw== 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 w14si2803885edl.600.2020.05.16.04.07.55; Sat, 16 May 2020 04:08:22 -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 S1726249AbgEPLGR (ORCPT + 99 others); Sat, 16 May 2020 07:06:17 -0400 Received: from mga02.intel.com ([134.134.136.20]:26451 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbgEPLGQ (ORCPT ); Sat, 16 May 2020 07:06:16 -0400 IronPort-SDR: TKFxObQi7ut6bXsanv3itmymNJ+xrLevOqI+jjAh1WY3akz1tWzzgcQo/A9EI0QJVQrgwWpDoZ oXRmgyBVtzIQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2020 04:06:16 -0700 IronPort-SDR: mr/DOfseHp/z/ixbKiGPnE+x2RyUBperkPFpLoDHnEPwgL4gajXjWNF9I3tD42a/vKzUO5XWCC lCzq5PPISTwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,398,1583222400"; d="scan'208";a="263457885" Received: from twinkler-lnx.jer.intel.com ([10.12.91.155]) by orsmga003.jf.intel.com with ESMTP; 16 May 2020 04:06:14 -0700 From: Tomas Winkler To: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH 1/2] mfd: constify properties in mfd_cell Date: Sat, 16 May 2020 14:06:08 +0300 Message-Id: <20200516110609.22013-2-tomas.winkler@intel.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200516110609.22013-1-tomas.winkler@intel.com> References: <20200516110609.22013-1-tomas.winkler@intel.com> 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 It is always passed around as a pointer const struct. Signed-off-by: Tomas Winkler --- include/linux/mfd/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.21.3