Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C956C55186 for ; Wed, 22 Apr 2020 08:51:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E906B2064A for ; Wed, 22 Apr 2020 08:50:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726041AbgDVIu7 (ORCPT ); Wed, 22 Apr 2020 04:50:59 -0400 Received: from mga07.intel.com ([134.134.136.100]:25247 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725786AbgDVIu7 (ORCPT ); Wed, 22 Apr 2020 04:50:59 -0400 IronPort-SDR: DQ4hpGOT8DJyLvb5vCEIRvAbWImCsjn1l60uQDyYZoCqCJOfpb+tuuq0nD9vSNsuxSKl9R8/4U vLWcnmZkxCKA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 01:50:59 -0700 IronPort-SDR: jrRXER75DcihCkHZB+dJRt2irUf7UMEXjfpJcaziCw8vlGMtAjPXncl31Ncp529hP+M/D9IZvB WsSuSomBuIWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,413,1580803200"; d="scan'208";a="365619255" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 22 Apr 2020 01:50:56 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 22 Apr 2020 11:50:56 +0300 Date: Wed, 22 Apr 2020 11:50:56 +0300 From: Mika Westerberg To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, Linus Walleij Subject: Re: [PATCH v1 2/2] pinctrl: intel: Move npins closer to pin_base in struct intel_community Message-ID: <20200422085056.GR2586@lahna.fi.intel.com> References: <20200421190049.44888-1-andriy.shevchenko@linux.intel.com> <20200421190049.44888-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421190049.44888-2-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Apr 21, 2020 at 10:00:49PM +0300, Andy Shevchenko wrote: > It's common across the drivers to use the (pin_base, npins) pair to describe > community characteristics. Thus, move them in the struct intel_community > to be closer to each other. > > Signed-off-by: Andy Shevchenko > --- > drivers/pinctrl/intel/pinctrl-intel.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/pinctrl/intel/pinctrl-intel.h b/drivers/pinctrl/intel/pinctrl-intel.h > index 058bf2b6d9f0e..bd653f2a07382 100644 > --- a/drivers/pinctrl/intel/pinctrl-intel.h > +++ b/drivers/pinctrl/intel/pinctrl-intel.h > @@ -94,12 +94,12 @@ enum { > * @ie_offset: Register offset of GPI_IE from @regs. > * @features: Additional features supported by the hardware > * @pin_base: Starting pin of pins in this community > + * @npins: Number of pins in this community > * @gpp_size: Maximum number of pads in each group, such as GPI_IS, GPI_IE, > * PADCFGLOCK, HOSTSW_OWN. Used when @gpps is %NULL. > * @gpp_num_padown_regs: Number of pad registers each pad group consumes at > * minimum. Use %0 if the number of registers can be > * determined by the size of the group. > - * @npins: Number of pins in this community > * @gpps: Pad groups if the controller has variable size pad groups > * @ngpps: Number of pad groups in this community > * @pad_map: Optional non-linear mapping of the pads > @@ -121,12 +121,13 @@ struct intel_community { > unsigned int ie_offset; > unsigned int features; > unsigned int pin_base; > + size_t npins; > unsigned int gpp_size; > unsigned int gpp_num_padown_regs; > - size_t npins; > const struct intel_padgroup *gpps; > size_t ngpps; > const unsigned int *pad_map; > + Unrelated whitespace change? In any case, Acked-by: Mika Westerberg