Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1196534ybk; Sat, 16 May 2020 04:08:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6CpeunOxusn/kJOqPWQjZ554mVjrjun6PDDJMiVTPFO5sbLGfcHF5MPaKwXx38wIGfoDj X-Received: by 2002:a05:6402:7ca:: with SMTP id u10mr6226030edy.322.1589627322844; Sat, 16 May 2020 04:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589627322; cv=none; d=google.com; s=arc-20160816; b=mNPNhMFrjPrwXU90K2YsLyLQ59QlupibY2fbKHgDvYtL32BVFU/fXeCIx80oy4GXUs jr28sLKc7tbeKUNklc9S2OtMdJQLegZFtRN9WX/8jfKys7TJwGOzEvq8QCXYTjXF9VS6 A165kK0S5V7E9dzsEwmQQZJgNm6hPkBUS2HQWi3fHzdYIx/KtCSgPkGYRZM67DuQippC AeUQqYZFUyH+gDZeyWhVijOtBfdTwlxYZzuQ5oPaSvaSD9zF+/ZJOk+3MCLtLxH9JyQR te7v1fQI9k5U9W+xeuS6sm5Irzp6NZC0NYfwOgkJ9pevewc73HG7/eGxe33Kpa1udlEt I8hw== 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=9TS/prMhJQ8ietlI/67KLDcPBa/skDf/Tvww3dEaeM4=; b=JvrlSR9/DywAOBMmSatNqAP3DSqjtr72x7zf603hF1FHGg3cBtzZdTjtdI0xNBN+xS AXo0rOCK3FOiX1iCzQenDSdqPA0tyK5W66VnuRd42L6hPcTZOmb6hniut7YW1PqkmawB QnfheoZwLWsP/bPBQAzMTdWRqialFGpumV0cIcSrxXfzCN1U2ZLjmkD7D0PXPPXkaK9D yc1Z2y+dw8pPGyCNKqpmqfCnmBTIG8aSUIPluEU0V5Jn/621J3wrapql+4OvgwjOnHVs GCRlKufoxqezww0lLD/485kL3wttqN1hvW/Zxcqzfo/fty1/Sy9bO2ZDkCYZ2rn3Cwoq 5nzg== 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 v5si2622320edi.440.2020.05.16.04.08.18; Sat, 16 May 2020 04:08:42 -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 S1726266AbgEPLGT (ORCPT + 99 others); Sat, 16 May 2020 07:06:19 -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 S1726170AbgEPLGS (ORCPT ); Sat, 16 May 2020 07:06:18 -0400 IronPort-SDR: vCVPo9w43chX2DDBRA9Ydu9f/vb2jie9Ew8ORcMZKLa3arBp2vdc/reQ/cYyFOEXe2vyHDVRLE Rf24UxyNoMHg== 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:18 -0700 IronPort-SDR: m0wg51Tx6ROU4LHBKnUyWmWtm986e18Pn02u3VVeT/otnc2jS63zTmUulJGiV2aGz798VVoFNy vr9bFBYyv6tQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,398,1583222400"; d="scan'208";a="263457892" Received: from twinkler-lnx.jer.intel.com ([10.12.91.155]) by orsmga003.jf.intel.com with ESMTP; 16 May 2020 04:06:16 -0700 From: Tomas Winkler To: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH 2/2] mfd: mfd_cell: constify platform_data Date: Sat, 16 May 2020 14:06:09 +0300 Message-Id: <20200516110609.22013-3-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 platform_data is duplicated into platform_device platform_data via platform_device_add_data() and is not modified. 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 7e5ac3c00891..6919aaee33dc 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h @@ -66,7 +66,7 @@ struct mfd_cell { int (*resume)(struct platform_device *dev); /* platform data passed to the sub devices drivers */ - void *platform_data; + const void *platform_data; size_t pdata_size; /* device properties passed to the sub devices drivers */ -- 2.21.3