Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp544535ybl; Wed, 28 Aug 2019 01:39:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG4xJh2d1FUPcgKq2yCsFKMnpcA0B5P5P0BkW247kX8weFVdgv5liqez30k+ATMNQtH5wt X-Received: by 2002:a63:9318:: with SMTP id b24mr2415362pge.31.1566981599131; Wed, 28 Aug 2019 01:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566981599; cv=none; d=google.com; s=arc-20160816; b=iIaONo63rueyreUA+intjYqy+bwa3X3IttSv92XOepQ1Jlw2ojJT47odecRe4EDyL3 20rdxubjTFVTQhlj8xGkVg1l9PcQF+CjhdDS1NIxzMAwNTSzHwiUO90UmuPOMrQ0jPYo ouIHeVKBNWTXYnZs80G7LccKBbwGn0sBiHRGZ8mph6EtuOsbgbPbQ1kYw+mxJ7eGVkn0 1938cugC76U7LIui/jS2dQBF/nKqsIAV2Au2zA/1bUBvZZ9ziMCGtuYD7GGRoug0lyWn XrzV8Avi2ei8WNNFUKeIdWhk7Py4qzqZThpGMofHLRkZ1KQhN1XW4T1opdSuoC0u1I+k W8mg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LA42bpg7TE1ErDc8e8NGiPSnjc3LkGHxDTQOiKqpb4U=; b=gFGiKGdJyuv+6sXWCMVuFH9l7aB3tUs4PMculQVkEhFP4xpi/+OIGG6+exG55hiVjU deL+3eeMBzy5iZcv50hqSRLAgl9xHgfFQ8ZEv2ypMcAAnN4kbau2EYfBw/ng3x1HJ012 BnVplIqRDeDl0rXm8XYZAiwO88JcVUX+gHGC2vAUQ3Q3O7ndwxjydUr6K31woL7gWqwx PwOYKGJfIuYI66Cc9KcFjtWrA6AMsad36fQPeyPu9I08OXp3+yZLTDfPUnp59JJzpyIt B5KWPyITpFdkLYiz/u/NGA0T1tED9d1M64b+UQXKKzyyY2YN53UbV3c5ZkFCG5HkgiTv Lekg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=hfSMAmRp; 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 y4si1372668plk.123.2019.08.28.01.39.42; Wed, 28 Aug 2019 01:39: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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=hfSMAmRp; 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 S1726370AbfH1Iis (ORCPT + 99 others); Wed, 28 Aug 2019 04:38:48 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38731 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfH1Iis (ORCPT ); Wed, 28 Aug 2019 04:38:48 -0400 Received: by mail-ot1-f68.google.com with SMTP id r20so1971932ota.5 for ; Wed, 28 Aug 2019 01:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LA42bpg7TE1ErDc8e8NGiPSnjc3LkGHxDTQOiKqpb4U=; b=hfSMAmRpOdASqMo7kGDzwsaq1ugAqj8azpYiMW18Q4rIOyrsHZHB8eUQZRZWS6talu aq8wdMiWdJYogvypSrLVo8nEOyX7ETgHotBuqD2xXAnkpsCEQmqAtVnK76LnFuTHD0cD FS2jQLmBQtBHhcUeLjxcFGH23vM2ugltBi0mZl3AKifLrE4Dcfu82NYWTwduo8N9nF0o POzqNyeGFRSXYaDTcJlIMhmKWlHMqhp7vxvqHNr1pZebgghxEoaQWhymlcp/WAey8P85 RlNvGjLrgQ2Vd4em5KUYRyhWldG9dH2oMv2LKV/t9kYF6I1+uP2ZwjPygwg7mHCxEuUe vTBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LA42bpg7TE1ErDc8e8NGiPSnjc3LkGHxDTQOiKqpb4U=; b=XOrG2faJNLR67WxPVWAm4UNhXB3nBVSfwJc1faaQQjh7jZr/kd+NG58cUrHr5oMYDP YIVfPGGCuqJ6peODo+gEmxZ0ampsCDL7c8pg3a6MXfZluW1BvCq5byOTiq2FAHwrpJsV E+Di0zO593LeDDObvpQ12V+P81VONZkLpXquSC19qX9Z46jpOGv4L/Ljqu+NsigegjWi 9KF53Ag9p9mQMXL9zpQAXslN4nWaQvqvBuHyaoSZr6nO1FXdzfIUIfbkwSlGrIBN/SPr JQvb23P3fV02fnfYeJBSJEaX4f8HcJs6DJ+sUCo7rqP1npnFZOAhYpqRXYW30MUN6VBH /1LA== X-Gm-Message-State: APjAAAXidArwCiUA16CZAPU89sf72CxYysFsU1Y5BHg/3ZF1Ix6aG4HC 4eXjado66b02YUXG4T5YBNlKZnp6eyT6ZjHAPViTbiM4 X-Received: by 2002:a9d:5551:: with SMTP id h17mr2372248oti.194.1566981527387; Wed, 28 Aug 2019 01:38:47 -0700 (PDT) MIME-Version: 1.0 References: <20190827064629.90214-1-david@protonic.nl> In-Reply-To: <20190827064629.90214-1-david@protonic.nl> From: Bartosz Golaszewski Date: Wed, 28 Aug 2019 10:38:36 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: gpio-pca953x.c: Correct type of reg_direction To: David Jander Cc: Linus Walleij , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 27 sie 2019 o 08:46 David Jander napisa=C5=82(a): > > The type of reg_direction needs to match the type of the regmap, which is > u8. > > Signed-off-by: David Jander > --- > drivers/gpio/gpio-pca953x.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c > index 378b206d2dc9..30072a570bc2 100644 > --- a/drivers/gpio/gpio-pca953x.c > +++ b/drivers/gpio/gpio-pca953x.c > @@ -604,7 +604,7 @@ static void pca953x_irq_bus_sync_unlock(struct irq_da= ta *d) > u8 new_irqs; > int level, i; > u8 invert_irq_mask[MAX_BANK]; > - int reg_direction[MAX_BANK]; > + u8 reg_direction[MAX_BANK]; > > regmap_bulk_read(chip->regmap, chip->regs->direction, reg_directi= on, > NBANK(chip)); > @@ -679,7 +679,7 @@ static bool pca953x_irq_pending(struct pca953x_chip *= chip, u8 *pending) > bool pending_seen =3D false; > bool trigger_seen =3D false; > u8 trigger[MAX_BANK]; > - int reg_direction[MAX_BANK]; > + u8 reg_direction[MAX_BANK]; > int ret, i; > > if (chip->driver_data & PCA_PCAL) { > @@ -768,7 +768,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chi= p, > { > struct i2c_client *client =3D chip->client; > struct irq_chip *irq_chip =3D &chip->irq_chip; > - int reg_direction[MAX_BANK]; > + u8 reg_direction[MAX_BANK]; > int ret, i; > > if (!client->irq) > -- > 2.19.1 > Applied for v5.4. Thanks! Bart