Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1996246ybv; Sat, 8 Feb 2020 10:44:41 -0800 (PST) X-Google-Smtp-Source: APXvYqypNbvN0lt6DgFR0HsDVlWGYqK5sWf2fZexz0oGS7k0FAs1bIxIwDwXixBQwJPnqwnQXZKH X-Received: by 2002:aca:2210:: with SMTP id b16mr5827599oic.32.1581187481747; Sat, 08 Feb 2020 10:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581187481; cv=none; d=google.com; s=arc-20160816; b=X44rSIqYGOBJiG4+u4pzUT9VOgU38aviS7rEVj/a5/8c5X2nmHNg/wt+K2JjKsEF/L of+1auD8tSk2YRq2Axdf9zeAyHC6t43qGbLTEsB9NrEEjOdgtNrFLXNpxGPb5alEZkZr i5CnuJI3fWT5rkgYMsGpU0Ub54g1tiFhDn372HISh1j3/bsKCf/7GIKol5vUI+njSH4l b+qoR0Q12fSrDxNxT6Au1J5cedjc41qLUjROSke0AsnuQVUKGI+pcSoBOyvSgpy8yFNJ ceiSdEz10gyfwUOHN1yT3cABrjNOY41GV+69M0gSUhB8MGg7/assrUjLYrT/8KVjN7uQ 232w== 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=eQZe1uFxur9/HRzZQiHnto2ezKVl10/b2nbOm24GOE8=; b=RKR7JUKit/pZdwTM2wntuhtxtM2ml6KnRdsdIUHwvBb/ri6OtdKEktccvLxHKxiPfE GGKmfYDSiqZpE4XSBHLzOdONeDWtJRddKUy7gIJcRnGDO298mJqIE8BuHIcDJdayMQfx mMnLpWqnJPqT1DyghrtPLW8+aWc8gTCfuRplD1EQknknkNMxrpSN/sXo2pKqc9vr17TQ OKcTcDxXm9F29+lr9uztks+/99FUyAr10Sa6ewqUuhukrxywuGKchmzriCS1Ye8MMKso XSo98BAzTTbpQsk1mAs8+hBJRc+VUbLjKf5+6eww019+zxiPQTVhMSnyyTjka/IDKIKP RD0w== 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 p83si5980123oih.198.2020.02.08.10.44.29; Sat, 08 Feb 2020 10:44:41 -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 S1727555AbgBHSoX (ORCPT + 99 others); Sat, 8 Feb 2020 13:44:23 -0500 Received: from mga01.intel.com ([192.55.52.88]:57472 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbgBHSoW (ORCPT ); Sat, 8 Feb 2020 13:44:22 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2020 10:44:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,418,1574150400"; d="scan'208";a="405181243" Received: from twinkler-lnx.jer.intel.com ([10.12.91.155]) by orsmga005.jf.intel.com with ESMTP; 08 Feb 2020 10:44:20 -0800 From: Tomas Winkler To: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Tomas Winkler , Andy Shevchenko Subject: [PATCH 1/2 V2] mfd: constify properties in mfd_cell Date: Sat, 8 Feb 2020 20:44:06 +0200 Message-Id: <20200208184407.1294-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 It is always passed around as a pointer const struct. Reviewed-by: Andy Shevchenko Signed-off-by: Tomas Winkler --- V2: drop platform_device part 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.1