Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1996494ybv; Sat, 8 Feb 2020 10:45:07 -0800 (PST) X-Google-Smtp-Source: APXvYqy/n3LEGdEnHTG+uTHXq5bH83ZSkesFvU0fIYXculMlIu54pm0/VGwPnwrRGj6Yx7E3CGBt X-Received: by 2002:a05:6830:1050:: with SMTP id b16mr4369309otp.140.1581187507108; Sat, 08 Feb 2020 10:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581187507; cv=none; d=google.com; s=arc-20160816; b=Tv80is7JdLh98miWeGCKNLN2DAVJzQ2CRKqSqSmY4vD5JjmK/2numuU3QbVc0zFwGh jn1qn1xD95FavdGV1q8Wc06ivOVb+r5hjy1tEFQN4QpKwQHFyOZqWyrGo9CVVb6Qxd+e +LU9Bn4/JGJ3Ro9gvqbWAEbJ+bP/BFmOLWcZXBt6cyGcK9WYGr2vqhxk2jO12WvTVR8c t8Mf4Bv7SiinKun+Hq22e8A8Z9I5mG3ax2BBF+C4a77nK7LmhtVaDkIisCidKmdBv9bs qKOfFdnYRey57iCg/U+O6W14ry9hUvmNBG585w8/slnDyJZIUy6xgBMPdvUfhvKjMnJN ns6w== 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; bh=DsFuUhc7FeAW1mSabZXH1QqfbU2LTlMpqMrvHO2JyYg=; b=JnA04z21W/xhQHdQwptlz9srLWIupCWPUy07LurSPyO/7HeeqZOU52dRYN36G4RX69 kXYl3VVnzegkCfIaMN11jrfg8c1QlQXuNGWh0HvKEtjFfvE5SlTOwctcE0a/ynCz2NXZ XQGgjptA81y1WdyTpfySfcbahkvKOCwwVDP4P1VrNJSlcB2GVl8bTOHktYH09be3+WRz tSZLzz6dQyCFc6t4Bimh1u7w2dvTL48x+pBwBLg2XscJQONqUsfhaf/GAHQ+J+NaxWoM mxDdAUMa+KSJRoa3zleGSVx+6TdETtBp2t4CL9BspVs9SXxKfpHdlaoCI7uoFXguU6tF x5Gw== 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 i124si5893936oif.214.2020.02.08.10.44.56; Sat, 08 Feb 2020 10:45:07 -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 S1727572AbgBHSoZ (ORCPT + 99 others); Sat, 8 Feb 2020 13:44:25 -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 S1727484AbgBHSoY (ORCPT ); Sat, 8 Feb 2020 13:44:24 -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:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,418,1574150400"; d="scan'208";a="405181250" Received: from twinkler-lnx.jer.intel.com ([10.12.91.155]) by orsmga005.jf.intel.com with ESMTP; 08 Feb 2020 10:44:22 -0800 From: Tomas Winkler To: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Tomas Winkler , Andy Shevchenko Subject: [PATCH 2/2] platform: constify properties in platform_device Date: Sat, 8 Feb 2020 20:44:07 +0200 Message-Id: <20200208184407.1294-2-tomas.winkler@intel.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200208184407.1294-1-tomas.winkler@intel.com> References: <20200208184407.1294-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 platform_device. It is always passed around as a pointer const struct. Reviewed-by: Andy Shevchenko Signed-off-by: Tomas Winkler --- include/linux/platform_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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