Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp467192imm; Wed, 19 Sep 2018 01:43:06 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8l45cXh3v16c+uKNWHsfh0UgY+LE8YZ2Qci0qv8E9h4vO8yL9q9UrF77azW8hdFUjsc4m X-Received: by 2002:a63:66c7:: with SMTP id a190-v6mr31889175pgc.411.1537346586380; Wed, 19 Sep 2018 01:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537346586; cv=none; d=google.com; s=arc-20160816; b=VcnKqJ2O5dd9mTIu4b6xC0T0Z9En347gzDec1SWhOVK5yt5P70uLWm2LU4c5xpt5EW kr1boM4ZsMBN3IIVgKNeM1McKGleRpbBffcZrv4urwbHqPiWgT7N1nHJEu55VNzP6x/G U+33fvwERUQ/rB3LWKN+Bb/bpygAB/V5AscVlTT04pirF4cMxZsrRM0FaVmGLwcr1q/N gBcA5vSI1J6tMdKe8nwzmIJQBZ9oNykDeERlBCpTeaBbjtOpkWD7JjCCbD5unaTW3JaR VU+4iS6LNwkO9pIt1UOeRskde7JZHUP++AcFBMHqR8X8N8erX+Q1PV3fBYVcoO3T/2CT YoUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=M2n4AFOJ0hOOLG9YrPs3MPrH/0KYvEtMIAfWipxO+9c=; b=nwqbMBnTRfeAwYrueMLs7a/obbBLlk3dUNOzHzxSOuDASjrUwdF7Q6XP6/HU1wMcT8 l4h2M0T4aGjEpeSX8AdUEQABMkREy5wWSGb1OltG27L/oMbDUjtni1nwokUKRef47sxs wPxmpWkIswW10vB5lPGkgA/ORXR5DVIUTr72WJTqIcuYbpLe15NFve3cDJWhdbfM84UB IoYF57rFm0shy4u3nWmopAnO23xt+ZvkekAGsnwvK2c80ZdCnlXBhCz/Dav2Sjxvj4L0 KyVIsZFl6Ylb6tcP0DPIBANdO0/6oeFVTWNjOBKKGGzJmnuiTsRGnZzzxcl24+dYwN9i 4dzg== 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 k10-v6si19941435plt.328.2018.09.19.01.42.50; Wed, 19 Sep 2018 01:43:06 -0700 (PDT) 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 S1731074AbeISOQ6 (ORCPT + 99 others); Wed, 19 Sep 2018 10:16:58 -0400 Received: from mga02.intel.com ([134.134.136.20]:64550 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbeISOQ5 (ORCPT ); Wed, 19 Sep 2018 10:16:57 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 01:40:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,393,1531810800"; d="scan'208";a="263887951" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga005.fm.intel.com with SMTP; 19 Sep 2018 01:40:03 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 19 Sep 2018 11:40:02 +0300 Date: Wed, 19 Sep 2018 11:40:02 +0300 From: Mika Westerberg To: Rajat Jain Cc: Andy Shevchenko , Linus Walleij , casey.g.bowman@intel.com, "Atwood, Matthew S" , linux-gpio@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] pinctrl: intel: Do pin translation in other GPIO operations as well Message-ID: <20180919084002.GR14465@lahna.fi.intel.com> References: <20180918153621.71984-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 03:14:44PM -0700, Rajat Jain wrote: > Also consider fixing the checkpatch warning: > > Errors: > * checkpatch.pl errors/warnings > > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > #48: FILE: drivers/pinctrl/intel/pinctrl-intel.c:764: > +static int intel_gpio_to_pin(struct intel_pinctrl *pctrl, > unsigned offset, Right, it is currently the "convention" used in Intel pinctrl drivers so I did not want to change that single entry. We should eventually convert the whole set of Intel pinctrl drivers to use unsigned int instead of unsigned.