Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3762402imu; Mon, 28 Jan 2019 10:19:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN6sLbwqQnce5VYzsm5hwwke+TqpDHckZpRtG6EHunIaEYGSr662XFHGmiAokF0/BOU3kHJb X-Received: by 2002:a63:8ac4:: with SMTP id y187mr20895825pgd.446.1548699561558; Mon, 28 Jan 2019 10:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548699561; cv=none; d=google.com; s=arc-20160816; b=C95/s4m/ACiTXbPiTbh1v79N2hjPxAj9DVFrPr7hKQ+uAs3QNxjzYvSl66tyGFTocB R6UYNQGNQn8tDQ+n2nxnsn6s34CMlVOuxhnsXViP96gXiNouAB8lEP3jCsAwXg066gAs HhLNNWoQOewQMMGs1gDmZabPjnVBihDz7c3MR6GlU2kaThXo4vOMeijMW4pxFAuL2LO3 YUHmM2Sd6sFcU9/2Yk42lsugZvqs0x+N0eDXYzzcdhatEqabJwY/mK1RmeHa11mn9Jcz WwYC0TF0HOfYDVIzdNZnAjUzpSYVvOxiEtFnK2CcERenPV9C1m762gIwkiqQDDaZyFtl eSjg== 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:cc:to:subject:from:date :dkim-signature; bh=QqOIPFqBna+9AZqz3Mi7Jy50GTSC3er1awuk6gBkU3c=; b=Lr5mDTnjsldHHSq48eVIc0xpn4nbih88HxBk1U4Bi6OX367vuRz6fUh98AeQCMZxZE 4Pki/6GpBF5uvEiZFBpq8lSn7abxsAg+6Aql09gQ3iIeH1Zs3nW0RoHImXQu2ND/ecCP yIS1hPz53NFf1u3XZdMyfR5upSxZSpGARt8VrEhpim83SQj9l59l7HiQSJfjoaCW0zC5 s+VRmduPHVkDwLrW8bsPLr0Hq+YPL9g9jOGu3eHkRw3GPtM21sVCMWfqgZcaXyAiRvjl bUsWziI6E1WA5IX7ktZn6xdYQdk3xZL3fGOT9JN3Qse6/xnNDY/1qTI0ohQOMzxC9Q7v ILLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=nS6r1ixE; 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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si34111778plh.307.2019.01.28.10.19.05; Mon, 28 Jan 2019 10:19:21 -0800 (PST) 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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=nS6r1ixE; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbfA1SS3 (ORCPT + 99 others); Mon, 28 Jan 2019 13:18:29 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:40794 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfA1SS3 (ORCPT ); Mon, 28 Jan 2019 13:18:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1548699506; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QqOIPFqBna+9AZqz3Mi7Jy50GTSC3er1awuk6gBkU3c=; b=nS6r1ixEfH92Oztu17kE1u/axKQESujmovVIQkRgoXFqL90dhm0/HYui3I+htVKhW/H+BW wYyq4RFQIDMxxoKiCzq8CPkap+ixXoIVWCxbwobUtJvzjwGU4l1mMnaxJOH5aM9t+ZcYei atSCo/UQLyHVJptyesdzAtLG6Nm7XUA= Date: Mon, 28 Jan 2019 15:18:15 -0300 From: Paul Cercueil Subject: Re: [PATCH v2 3/3] Pinctrl: Ingenic: Unify the function name prefix to "ingenic_gpio_". To: Zhou Yanjie Cc: linus.walleij@linaro.org, linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, paul.burton@mips.com, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com, Zhou Yanjie Message-Id: <1548699495.7511.2@crapouillou.net> In-Reply-To: <1548688799-129840-4-git-send-email-zhouyanjie@zoho.com> References: <1548410393-6981-1-git-send-email-zhouyanjie@zoho.com> <1548688799-129840-1-git-send-email-zhouyanjie@zoho.com> <1548688799-129840-4-git-send-email-zhouyanjie@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 28 janv. 2019 =E0 12:19, Zhou Yanjie a=20 =E9crit : > From: Zhou Yanjie >=20 > In the original code, some function names begin with "ingenic_gpio_", > and some with "gpio_ingenic_". For the sake of uniform style, > all of them are changed to the beginning of "ingenic_gpio_". >=20 > Signed-off-by: Zhou Yanjie Reviewed-by: Paul Cercueil > --- > drivers/pinctrl/pinctrl-ingenic.c | 46=20 > +++++++++++++++++++-------------------- > 1 file changed, 23 insertions(+), 23 deletions(-) >=20 > diff --git a/drivers/pinctrl/pinctrl-ingenic.c=20 > b/drivers/pinctrl/pinctrl-ingenic.c > index 6501f35..2b3f7e4 100644 > --- a/drivers/pinctrl/pinctrl-ingenic.c > +++ b/drivers/pinctrl/pinctrl-ingenic.c > @@ -715,7 +715,7 @@ static const struct ingenic_chip_info=20 > jz4780_chip_info =3D { > .pull_downs =3D jz4770_pull_downs, > }; >=20 > -static u32 gpio_ingenic_read_reg(struct ingenic_gpio_chip *jzgc, u8=20 > reg) > +static u32 ingenic_gpio_read_reg(struct ingenic_gpio_chip *jzgc, u8=20 > reg) > { > unsigned int val; >=20 > @@ -724,7 +724,7 @@ static u32 gpio_ingenic_read_reg(struct=20 > ingenic_gpio_chip *jzgc, u8 reg) > return (u32) val; > } >=20 > -static void gpio_ingenic_set_bit(struct ingenic_gpio_chip *jzgc, > +static void ingenic_gpio_set_bit(struct ingenic_gpio_chip *jzgc, > u8 reg, u8 offset, bool set) > { > if (set) > @@ -738,7 +738,7 @@ static void gpio_ingenic_set_bit(struct=20 > ingenic_gpio_chip *jzgc, > static inline bool ingenic_gpio_get_value(struct ingenic_gpio_chip=20 > *jzgc, > u8 offset) > { > - unsigned int val =3D gpio_ingenic_read_reg(jzgc, GPIO_PIN); > + unsigned int val =3D ingenic_gpio_read_reg(jzgc, GPIO_PIN); >=20 > return !!(val & BIT(offset)); > } > @@ -747,9 +747,9 @@ static void ingenic_gpio_set_value(struct=20 > ingenic_gpio_chip *jzgc, > u8 offset, int value) > { > if (jzgc->jzpc->version >=3D ID_JZ4770) > - gpio_ingenic_set_bit(jzgc, JZ4770_GPIO_PAT0, offset, !!value); > + ingenic_gpio_set_bit(jzgc, JZ4770_GPIO_PAT0, offset, !!value); > else > - gpio_ingenic_set_bit(jzgc, JZ4740_GPIO_DATA, offset, !!value); > + ingenic_gpio_set_bit(jzgc, JZ4740_GPIO_DATA, offset, !!value); > } >=20 > static void irq_set_type(struct ingenic_gpio_chip *jzgc, > @@ -767,21 +767,21 @@ static void irq_set_type(struct=20 > ingenic_gpio_chip *jzgc, >=20 > switch (type) { > case IRQ_TYPE_EDGE_RISING: > - gpio_ingenic_set_bit(jzgc, reg2, offset, true); > - gpio_ingenic_set_bit(jzgc, reg1, offset, true); > + ingenic_gpio_set_bit(jzgc, reg2, offset, true); > + ingenic_gpio_set_bit(jzgc, reg1, offset, true); > break; > case IRQ_TYPE_EDGE_FALLING: > - gpio_ingenic_set_bit(jzgc, reg2, offset, false); > - gpio_ingenic_set_bit(jzgc, reg1, offset, true); > + ingenic_gpio_set_bit(jzgc, reg2, offset, false); > + ingenic_gpio_set_bit(jzgc, reg1, offset, true); > break; > case IRQ_TYPE_LEVEL_HIGH: > - gpio_ingenic_set_bit(jzgc, reg2, offset, true); > - gpio_ingenic_set_bit(jzgc, reg1, offset, false); > + ingenic_gpio_set_bit(jzgc, reg2, offset, true); > + ingenic_gpio_set_bit(jzgc, reg1, offset, false); > break; > case IRQ_TYPE_LEVEL_LOW: > default: > - gpio_ingenic_set_bit(jzgc, reg2, offset, false); > - gpio_ingenic_set_bit(jzgc, reg1, offset, false); > + ingenic_gpio_set_bit(jzgc, reg2, offset, false); > + ingenic_gpio_set_bit(jzgc, reg1, offset, false); > break; > } > } > @@ -791,7 +791,7 @@ static void ingenic_gpio_irq_mask(struct irq_data=20 > *irqd) > struct gpio_chip *gc =3D irq_data_get_irq_chip_data(irqd); > struct ingenic_gpio_chip *jzgc =3D gpiochip_get_data(gc); >=20 > - gpio_ingenic_set_bit(jzgc, GPIO_MSK, irqd->hwirq, true); > + ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, true); > } >=20 > static void ingenic_gpio_irq_unmask(struct irq_data *irqd) > @@ -799,7 +799,7 @@ static void ingenic_gpio_irq_unmask(struct=20 > irq_data *irqd) > struct gpio_chip *gc =3D irq_data_get_irq_chip_data(irqd); > struct ingenic_gpio_chip *jzgc =3D gpiochip_get_data(gc); >=20 > - gpio_ingenic_set_bit(jzgc, GPIO_MSK, irqd->hwirq, false); > + ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, false); > } >=20 > static void ingenic_gpio_irq_enable(struct irq_data *irqd) > @@ -809,9 +809,9 @@ static void ingenic_gpio_irq_enable(struct=20 > irq_data *irqd) > int irq =3D irqd->hwirq; >=20 > if (jzgc->jzpc->version >=3D ID_JZ4770) > - gpio_ingenic_set_bit(jzgc, JZ4770_GPIO_INT, irq, true); > + ingenic_gpio_set_bit(jzgc, JZ4770_GPIO_INT, irq, true); > else > - gpio_ingenic_set_bit(jzgc, JZ4740_GPIO_SELECT, irq, true); > + ingenic_gpio_set_bit(jzgc, JZ4740_GPIO_SELECT, irq, true); >=20 > ingenic_gpio_irq_unmask(irqd); > } > @@ -825,9 +825,9 @@ static void ingenic_gpio_irq_disable(struct=20 > irq_data *irqd) > ingenic_gpio_irq_mask(irqd); >=20 > if (jzgc->jzpc->version >=3D ID_JZ4770) > - gpio_ingenic_set_bit(jzgc, JZ4770_GPIO_INT, irq, false); > + ingenic_gpio_set_bit(jzgc, JZ4770_GPIO_INT, irq, false); > else > - gpio_ingenic_set_bit(jzgc, JZ4740_GPIO_SELECT, irq, false); > + ingenic_gpio_set_bit(jzgc, JZ4740_GPIO_SELECT, irq, false); > } >=20 > static void ingenic_gpio_irq_ack(struct irq_data *irqd) > @@ -850,9 +850,9 @@ static void ingenic_gpio_irq_ack(struct irq_data=20 > *irqd) > } >=20 > if (jzgc->jzpc->version >=3D ID_JZ4770) > - gpio_ingenic_set_bit(jzgc, JZ4770_GPIO_FLAG, irq, false); > + ingenic_gpio_set_bit(jzgc, JZ4770_GPIO_FLAG, irq, false); > else > - gpio_ingenic_set_bit(jzgc, JZ4740_GPIO_DATA, irq, true); > + ingenic_gpio_set_bit(jzgc, JZ4740_GPIO_DATA, irq, true); > } >=20 > static int ingenic_gpio_irq_set_type(struct irq_data *irqd, unsigned=20 > int type) > @@ -907,9 +907,9 @@ static void ingenic_gpio_irq_handler(struct=20 > irq_desc *desc) > chained_irq_enter(irq_chip, desc); >=20 > if (jzgc->jzpc->version >=3D ID_JZ4770) > - flag =3D gpio_ingenic_read_reg(jzgc, JZ4770_GPIO_FLAG); > + flag =3D ingenic_gpio_read_reg(jzgc, JZ4770_GPIO_FLAG); > else > - flag =3D gpio_ingenic_read_reg(jzgc, JZ4740_GPIO_FLAG); > + flag =3D ingenic_gpio_read_reg(jzgc, JZ4740_GPIO_FLAG); >=20 > for_each_set_bit(i, &flag, 32) > generic_handle_irq(irq_linear_revmap(gc->irq.domain, i)); > -- > 2.7.4 >=20 >=20 =