Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1028490pxb; Thu, 4 Mar 2021 01:03:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJhS9hlgUHuyjJ/pI3HrrrXScvp9pFPX5hEOVRmWsEB4pQulzYm0dMuv9aCPrgCR7BO4QS X-Received: by 2002:a05:6402:35d0:: with SMTP id z16mr3181487edc.151.1614848619367; Thu, 04 Mar 2021 01:03:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614848619; cv=none; d=google.com; s=arc-20160816; b=vZvNi8gOtUQN+K7hSdDwO7bplaNtLKa+af/gpXTx8B099adsSIgm5NVZ7deXJZN4Mb YcEY8gCrrQEb2PYCmm7k8wh2NnK7g5+/hoDh8wmApiUvYt+TqE/j5cMQNykWRjlfLTX3 t3BY3KyXgQi3Oa3r2+ZYyek/W1JpQmPrx4NOuygcrS/xS3pWQFp7eTh4JRWcnXo7OBVM QQqH5yiDJO2GJ1Ja90OWBbAOqAXQGO0u/3Mdpqo8Ffa6bnmcuhaMpjD8EDwW9aD/mMwo K9M8wD0lOOEihchJ5qtv8LBT5X5Gc4JBvOr8akZcY4orOpdk6lgMBwNUX79rOwTqcbNi 59Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=gKoZuTevwx/MyT+M3hp/cN8z+qmfkbAaEPL+tXKK5h8=; b=zFYGv+UtWHpl9cZEowFYcOMJNUbdZkJPD836KMDkXwZWpizB1CuhjG43XWYXRm53RK NARHt3yLW1xz0QtWC/cEzSxYnHx7NUfFZ8pIiT34PY0EKo63Lsy8B2BG5RNJoAijgVMq emSIHWZhtO60freswnXY8R/KSUOl3WBoOVmsXyQDfMIiO8kzD1O+vpIyWfwop2p0fNr6 DLp2qR+BOtJoaXNneG3sdSDyv8jrimGJ3TbwQYhnN0tfhbiuCTm121h3poYiUs2PboCA 7Z3GlYQksoidGMeYNQLrV1sq2Lpym1tQW6++WKmf5PJvfZFmPpUlgWQg3KfwYG/8mvkZ yVZA== 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 x11si4142120edd.560.2021.03.04.01.03.17; Thu, 04 Mar 2021 01:03:39 -0800 (PST) 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 S242923AbhCCNPq (ORCPT + 99 others); Wed, 3 Mar 2021 08:15:46 -0500 Received: from mga05.intel.com ([192.55.52.43]:62141 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357077AbhCCIR0 (ORCPT ); Wed, 3 Mar 2021 03:17:26 -0500 IronPort-SDR: PQULdhaIckK/7t69uRbc68UNTb5FwiduS4t7Kcgp0PvHlxaeXIay/ugR6if1TdQ6M3GoJFe7VF YvOeczNcYN9w== X-IronPort-AV: E=McAfee;i="6000,8403,9911"; a="272136727" X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="272136727" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:15:30 -0800 IronPort-SDR: Jl1gDOt18Yx3Wc3FOkcfIFLNuc3RejNsIXAn65v97ohTHqhTMI8M/7DjMCF88L5gQLcyzhIZ1W ZKMMVTPRr2mQ== X-IronPort-AV: E=Sophos;i="5.81,219,1610438400"; d="scan'208";a="383900135" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2021 00:15:27 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lHMfD-009afi-Vm; Wed, 03 Mar 2021 10:15:23 +0200 Date: Wed, 3 Mar 2021 10:15:23 +0200 From: Andy Shevchenko To: Rikard Falkeborn Cc: Lee Jones , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: stmpe: Revert "Constify static struct resource" Message-ID: References: <20210302234710.74455-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210302234710.74455-1-rikard.falkeborn@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 12:47:10AM +0100, Rikard Falkeborn wrote: > Andy noted that constification of some static resource structs in (If you wish, you may use Reported-by:, I'm fine with either way) > intel_quark_i2c_gpio.c were incorrect. It turns out there is another > change from the same series that is also incorrect in stmpe.c. > These structures are modified at init and can not be made const. > > This reverts commit 8d7b3a6dac4eae22c58b0853696cbd256966741b. I recommend to add a comment in the code as I did so nobody (okay, who reads the comments) will change that again. Thanks! > Fixes: 8d7b3a6dac4e ("mfd: stmpe: Constify static struct resource") > Cc: Andy Shevchenko > Signed-off-by: Rikard Falkeborn > --- > I went through the series and this was the only additional issue I > found. Sorry about that. > > drivers/mfd/stmpe.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c > index 90f3292230c9..1aee3b3253fc 100644 > --- a/drivers/mfd/stmpe.c > +++ b/drivers/mfd/stmpe.c > @@ -312,7 +312,7 @@ EXPORT_SYMBOL_GPL(stmpe_set_altfunc); > * GPIO (all variants) > */ > > -static const struct resource stmpe_gpio_resources[] = { > +static struct resource stmpe_gpio_resources[] = { > /* Start and end filled dynamically */ > { > .flags = IORESOURCE_IRQ, > @@ -336,7 +336,7 @@ static const struct mfd_cell stmpe_gpio_cell_noirq = { > * Keypad (1601, 2401, 2403) > */ > > -static const struct resource stmpe_keypad_resources[] = { > +static struct resource stmpe_keypad_resources[] = { > { > .name = "KEYPAD", > .flags = IORESOURCE_IRQ, > @@ -357,7 +357,7 @@ static const struct mfd_cell stmpe_keypad_cell = { > /* > * PWM (1601, 2401, 2403) > */ > -static const struct resource stmpe_pwm_resources[] = { > +static struct resource stmpe_pwm_resources[] = { > { > .name = "PWM0", > .flags = IORESOURCE_IRQ, > @@ -445,7 +445,7 @@ static struct stmpe_variant_info stmpe801_noirq = { > * Touchscreen (STMPE811 or STMPE610) > */ > > -static const struct resource stmpe_ts_resources[] = { > +static struct resource stmpe_ts_resources[] = { > { > .name = "TOUCH_DET", > .flags = IORESOURCE_IRQ, > @@ -467,7 +467,7 @@ static const struct mfd_cell stmpe_ts_cell = { > * ADC (STMPE811) > */ > > -static const struct resource stmpe_adc_resources[] = { > +static struct resource stmpe_adc_resources[] = { > { > .name = "STMPE_TEMP_SENS", > .flags = IORESOURCE_IRQ, > -- > 2.30.1 > -- With Best Regards, Andy Shevchenko