Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp799952imm; Mon, 2 Jul 2018 23:36:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJHu6VJ+5/ghPt5AMYRSkQ0T9IJEUmKGvtD1Uzs3OK1YfnU8DLH288Ht+7CL6v9OqqsMoNz X-Received: by 2002:a65:4c02:: with SMTP id u2-v6mr24917260pgq.364.1530599819630; Mon, 02 Jul 2018 23:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530599819; cv=none; d=google.com; s=arc-20160816; b=TC2He2Hbiz4xHy15zn0jymg6uUggpDW7r5eq+l7ZyzPKq0MlAVBqpq0ooG4HlAy3dr sVEBTPv6zpTdB31VZnDqd69ZiIFVoPadeWh8dIc+q0lZH0h3bXerXAaHDV6J083x7Hci fYRPFMjdJ8yhJ5CI3HV20P1WLzDrVVpREioAc/j3YQg2L1nnwh/T4nJsXTTvM1lmL1zx UuQMCVxFy2wqEnvAMnvcjbxiefyD2S7Yi38hp0RZurNCnTpVUG7gBtx/HraKGQ5H0BMa XX44Jd0/+SA2n7G1drs858fk5VPzHOoe8RAaZ4Pm0rDXg/NSeRSQQWsnyV6erCY1Lpnk WdSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rfmxWCY32w1M0OD6TBwga7TBJPTDlivH2A00EcXEa3U=; b=n2Qp2RFKrVQ67WgVcpC56o/bQSm0aWyKanl++qrfSc4Pzhbiea9J0kLF59eOkLqfLu aHfEqRkq8DIuZh0XjDkNE0jD7+rQBzWn+a5YSnDPaV9OQixPbiUWxSjnWjrs7H7g1qCz 2eXhPmoy/oB/4J59yZr6HuGU9aSu8xNVlhUzds7SNHJFjlYfrWVEa2Uhv3esjnuM5gab u61pwENWuBdRUqMQ7PR++ik3b+rP5yC3cNlA+qk0j0oaTeqwAwnGY+nOIwB6ib/bjCH+ BMPsPAMlbQ6LYR1Qc8dZGCGbYnFlpYtEqkV+1CjTeCBPsTwU26bba1FLRN7s/aZGBurS G3lQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15-v6si389983pls.425.2018.07.02.23.36.44; Mon, 02 Jul 2018 23:36:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933238AbeGCGfA (ORCPT + 99 others); Tue, 3 Jul 2018 02:35:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48040 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932646AbeGCGe6 (ORCPT ); Tue, 3 Jul 2018 02:34:58 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9C8A8E25; Tue, 3 Jul 2018 06:34:57 +0000 (UTC) Date: Tue, 3 Jul 2018 08:34:54 +0200 From: Greg Kroah-Hartman To: Peter Vernia Cc: devel@driverdev.osuosl.org, Kees Cook , linux-kernel@vger.kernel.org, NeilBrown , Christian =?iso-8859-1?Q?L=FCtke-Stetzkamp?= , dan.carpenter@oracle.com, John Crispin Subject: Re: [PATCH] staging: mt7621-pinctrl: Style fixes to pinctrl-rt2880 Message-ID: <20180703063454.GA21905@kroah.com> References: <1530595253-6539-1-git-send-email-peter.vernia@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530595253-6539-1-git-send-email-peter.vernia@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 01:20:47AM -0400, Peter Vernia wrote: > Replaces instances of "unsigned" with "unsigned int"; fixes comma and tab > spacing. > > Signed-off-by: Peter Vernia > --- > drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 35 +++++++++++++------------ > 1 file changed, 18 insertions(+), 17 deletions(-) > > diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c > index 0c3e498..6894510 100644 > --- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c > +++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c > @@ -54,7 +54,7 @@ static int rt2880_get_group_count(struct pinctrl_dev *pctrldev) > } > > static const char *rt2880_get_group_name(struct pinctrl_dev *pctrldev, > - unsigned group) > + unsigned int group) > { > struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); > > @@ -65,9 +65,9 @@ static const char *rt2880_get_group_name(struct pinctrl_dev *pctrldev, > } > > static int rt2880_get_group_pins(struct pinctrl_dev *pctrldev, > - unsigned group, > - const unsigned **pins, > - unsigned *num_pins) > + unsigned int group, > + const unsigned int **pins, > + unsigned int *num_pins) > { > struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); > > @@ -81,7 +81,8 @@ static int rt2880_get_group_pins(struct pinctrl_dev *pctrldev, > } > > static void rt2880_pinctrl_dt_free_map(struct pinctrl_dev *pctrldev, > - struct pinctrl_map *map, unsigned num_maps) > + struct pinctrl_map *map, > + unsigned int num_maps) > { > int i; > > @@ -94,7 +95,7 @@ static void rt2880_pinctrl_dt_free_map(struct pinctrl_dev *pctrldev, > > static void rt2880_pinctrl_pin_dbg_show(struct pinctrl_dev *pctrldev, > struct seq_file *s, > - unsigned offset) > + unsigned int offset) > { > seq_printf(s, "ralink pio"); > } > @@ -103,7 +104,7 @@ static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev, > struct device_node *np, > struct pinctrl_map **map) > { > - const char *function; > + const char *function; > int func = of_property_read_string(np, "ralink,function", &function); > int grps = of_property_count_strings(np, "ralink,group"); > int i; > @@ -112,7 +113,7 @@ static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev, > return; > > for (i = 0; i < grps; i++) { > - const char *group; > + const char *group; > > of_property_read_string_index(np, "ralink,group", i, &group); > > @@ -127,7 +128,7 @@ static void rt2880_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctrldev, > static int rt2880_pinctrl_dt_node_to_map(struct pinctrl_dev *pctrldev, > struct device_node *np_config, > struct pinctrl_map **map, > - unsigned *num_maps) > + unsigned int *num_maps) > { > int max_maps = 0; > struct pinctrl_map *tmp; > @@ -173,7 +174,7 @@ static int rt2880_pmx_func_count(struct pinctrl_dev *pctrldev) > } > > static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev, > - unsigned func) > + unsigned int func) > { > struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); > > @@ -181,7 +182,7 @@ static const char *rt2880_pmx_func_name(struct pinctrl_dev *pctrldev, > } > > static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev, > - unsigned func, > + unsigned int func, > const char * const **groups, > unsigned * const num_groups) > { > @@ -198,11 +199,11 @@ static int rt2880_pmx_group_get_groups(struct pinctrl_dev *pctrldev, > } > > static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev, > - unsigned func, > - unsigned group) > + unsigned int func, > + unsigned int group) > { > struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); > - u32 mode = 0; > + u32 mode = 0; > u32 reg = SYSC_REG_GPIO_MODE; > int i; > int shift; > @@ -243,7 +244,7 @@ static int rt2880_pmx_group_enable(struct pinctrl_dev *pctrldev, > > static int rt2880_pmx_group_gpio_request_enable(struct pinctrl_dev *pctrldev, > struct pinctrl_gpio_range *range, > - unsigned pin) > + unsigned int pin) > { > struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev); > > @@ -355,13 +356,13 @@ static int rt2880_pinmux_pins(struct rt2880_priv *p) > } > > /* the buffer that tells us which pins are gpio */ > - p->gpio = devm_kcalloc(p->dev,p->max_pins, sizeof(uint8_t), > + p->gpio = devm_kcalloc(p->dev, p->max_pins, sizeof(uint8_t), > GFP_KERNEL); > /* the pads needed to tell pinctrl about our pins */ > p->pads = devm_kcalloc(p->dev, > p->max_pins, sizeof(struct pinctrl_pin_desc), > GFP_KERNEL); > - if (!p->pads || !p->gpio ) { > + if (!p->pads || !p->gpio) { > dev_err(p->dev, "Failed to allocate gpio data\n"); > return -ENOMEM; > } > -- > 2.7.4 Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot