Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5162935ybl; Mon, 26 Aug 2019 23:58:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXQ5YvvvNuE/SgAwWK6wrkY2iJGPFnVeT463+mOtOhaimWj/DHmsGdtin1GFCyzt/4ysku X-Received: by 2002:aa7:8602:: with SMTP id p2mr11373666pfn.138.1566889128723; Mon, 26 Aug 2019 23:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566889128; cv=none; d=google.com; s=arc-20160816; b=mpLoyHNiaHStoij31Rznnfe+F+dSQZOj7dJOtYfZLAGFuNTKXEF5rBeuDmLa6s/Tam K8JDKVCqp+1oMmqGcqx+0TbhLWRKas8Kg01QDynAVlbJuZ/Py775ODO+NU2L+SIidEab H2COK+Xy+1KbBZ4WGSrwOFGz0HHqcOAbto23yUlJGO/SA+U4I5j4bUvaBdKVU8R6vX3x 6gflGVr7Pb9KHsIrcfG8Bc5VHeN1GUyexdd1LVoeWbMltMcwwdan488jIKYi9s0BsR+J tWsiL1hJQxw7vbgwBs0AmWWXs/arM3TiikBH1Su+Dno+aNrJgkKVQVHUFSjg2r+vbPfM CX0Q== 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 :message-id:date:subject:cc:to:from; bh=o1UqMfnBil0IgPn4CVaCwIqMdS+fF05K6/tOSm1XllA=; b=a/XingaLYYXVoCUrd1Hwf+lLrawwi7DF6keG4abrNobKcUiTHU+pu5R2E/aZ9IvBpK FH0WQGDWyOCy/iblx68PfAjvKU4N0FLR5a8pR6C4WxfzYti5eLaT655L2bIXO9ScqS/k rGNFtidTwa3tQKVpqaj1w1eXesBAVio0WrdXbGwo/wJ8qMPCBITCcr35O+JsnAUp5UqH Tw9QjqY1JeFhGmDSDug/lMIFe5aLQOK+3UDlx8L0savztxAPx/cQnarX85AndwC5Scjj 0ATQEAFC7zjiNeVG/2KCh0PcodCXOl+FNTKQSCpLdXfqCuh3mclkSAjwMUtNnYeX+YhM KeMw== 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 bg1si11798457plb.210.2019.08.26.23.58.33; Mon, 26 Aug 2019 23:58:48 -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 S1727435AbfH0G4z (ORCPT + 99 others); Tue, 27 Aug 2019 02:56:55 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:51451 "EHLO protonic.nl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725879AbfH0G4y (ORCPT ); Tue, 27 Aug 2019 02:56:54 -0400 X-Greylist: delayed 596 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Aug 2019 02:56:54 EDT Received: from troy.prtnl (troy.prtnl [192.168.224.29]) by sparta (Postfix) with ESMTP id 336AB44A009E; Tue, 27 Aug 2019 08:48:54 +0200 (CEST) From: David Jander To: Linus Walleij Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, David Jander Subject: [PATCH 1/2] gpio: gpio-pca953x.c: Correct type of reg_direction Date: Tue, 27 Aug 2019 06:46:28 +0000 Message-Id: <20190827064629.90214-1-david@protonic.nl> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_direction, NBANK(chip)); @@ -679,7 +679,7 @@ static bool pca953x_irq_pending(struct pca953x_chip *chip, u8 *pending) bool pending_seen = false; bool trigger_seen = 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 *chip, { struct i2c_client *client = chip->client; struct irq_chip *irq_chip = &chip->irq_chip; - int reg_direction[MAX_BANK]; + u8 reg_direction[MAX_BANK]; int ret, i; if (!client->irq) -- 2.19.1