Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp686804ybl; Wed, 28 Aug 2019 03:58:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYrHmXFK/ZeIKoO+9LpUvXhcKqCZlVJc9KPXjvLAQoR/8BQxVXupRD2VzYKxwAnYsXTVkR X-Received: by 2002:a63:58c:: with SMTP id 134mr3080107pgf.106.1566989903268; Wed, 28 Aug 2019 03:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566989903; cv=none; d=google.com; s=arc-20160816; b=L/lq68cSqZeRtSNDGlxWbFDCFeP11aoHe3nDJ/lIID0s+evSQpX6Kovf+TndrQrW4O iLbiug93aDnjVxYdBWobPK/ABGmoY0Szo8dDLMoKws3nbRFPUSamI6IofnPlneelqO1c PQ8DPASaL572oHjgObqJpPq3pBnk91aW1fbNZXpWsBIn9ptUXMjWSJ/r4wwBQ9juJLS/ KB4LaViqQWrul1mypevWqO5GxGLC3qdF5vxxVlFjFr91JpiM6kYRdVbikJNHrUf+EPaj j9sWbltUYVmy9rOaD6z1SR1Fm97Q2qdvEA3EyPd2R1AlTCcAQpsH08HfYWheGK/9hFNg 2y+Q== 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=9nBDIm2N1o53yUHNgHlni3PU6OkH5zkDsyDdUf/2oVk=; b=wrPcg4DNINDvD5R7M/eUEBKgs3Oxhd19Il7ZZcxb20It9R8+ZHZo5dVMirYXH3CLjd /LmbpuglOdSRPPs62CKGRooqEbNCFIwAMnr80ejEma6gjwo58QdPoPnFDlBJpPoRY1U8 jnFKPya88ProS+ysnwbjUFtRZ3B/Vt/h5kiAtKwWXr+X3VIJ3rcYUeVeq6jwP/YHjqI1 U5p4NQ3xiM6X8afIxeA1LrasI/e8NkMxhw4tYhCicddiZ+OPzfWb93BDOUNpnssusG3D JnY0n6WW/BHZXR/VSml/iEuMkdM3nlxlInrq9sELhdygjpf1h2FmRJM8pLf/NIgZG22Y nLoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=BUMTIuQP; 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 n22si1580610pjt.55.2019.08.28.03.58.07; Wed, 28 Aug 2019 03:58:23 -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=BUMTIuQP; 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 S1726515AbfH1K4l (ORCPT + 99 others); Wed, 28 Aug 2019 06:56:41 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33799 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbfH1K4k (ORCPT ); Wed, 28 Aug 2019 06:56:40 -0400 Received: by mail-ot1-f66.google.com with SMTP id c7so2328438otp.1 for ; Wed, 28 Aug 2019 03:56:39 -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=9nBDIm2N1o53yUHNgHlni3PU6OkH5zkDsyDdUf/2oVk=; b=BUMTIuQPT4mnrt196mfGejjgRmHSZoT05FuKeAxQp9JStqUFVI2cEDFgxC93bWptk0 mYMKz9bxEUKtrIbTgU1wlT3W5YGAOEnvVGHht9L/4jugtGrqk7yHpV8jFtxV+V90O+um /H5YHEjPVI91os5xEofC/w51XzKgVSynB6t0WGQbyjwFqedBu1lnnQlw8HQiW4LaXWxi NIpanUcOVC3DkhxmoTFRSasS4UR4482qgff6tXmEXUNTxQyI5p+Pimlr3yVg45yxjZIl xPqZHIhF22HJXKOGJ44FdPfwF+j6y+nBXCtVJLfIj68NptVx2I0+zHOrHm4vqquq8Ktb WIhA== 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=9nBDIm2N1o53yUHNgHlni3PU6OkH5zkDsyDdUf/2oVk=; b=nHEZW47dmoDvibFmedSmXi86fSAZQwA2n9T220gu0bezh9vITOS7LPf2v9CFPX3yyz zb+nLITHxZiO6gW5q7QYd44b9S7nNRC5eDAnXhJuvqIFlZti0T4PnJCKly5ub5S7DU9Z L9ba/oa6HYY5aSeGATau0HYICutBUEzIwklyfpNGRG22OJZ4ciIfoRDtAK+yUP5J/VTl BBdZ1KtnbQ5yUW0ximp3ApT9QK6OLn800M1eRapGxAY+58sN7m5daEJ+LIL6m7k4KM/2 9gdsvHrErha7B3FdB7Z2NlmSde4Dlg2BKjcIiQ5Sayp+UHhPL1l4unCGpbMfTvPqStcA tVaA== X-Gm-Message-State: APjAAAV5i3NlaIhK26HNc/QOXsY0Q39CvxUP6q8CLwusLIwMiWRS6lKu Qq27PhC49e83ypxA7sgLk5EJ3O3rSD1oeKVqZShQbQ== X-Received: by 2002:a9d:6290:: with SMTP id x16mr2722950otk.292.1566989799465; Wed, 28 Aug 2019 03:56:39 -0700 (PDT) MIME-Version: 1.0 References: <20190827064629.90214-1-david@protonic.nl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 28 Aug 2019 12:56:28 +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 =C5=9Br., 28 sie 2019 o 10:38 Bartosz Golaszewski napisa=C5=82(a): > > 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_= data *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_direc= tion, > > 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 *c= hip, > > { > > 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. Actually the second patch depends on the first one, so moved it over to fix= es. Bart > > Thanks! > Bart