Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768283rdg; Wed, 11 Oct 2023 05:12:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIxj38Wfz2cyWE2lRPBTx6giNCI8IfkV8A7svCgPdh1e/uSUa1gcE3mdSqC+/xcLs8+5Rz X-Received: by 2002:a05:6358:71e:b0:142:eb11:b0b8 with SMTP id e30-20020a056358071e00b00142eb11b0b8mr18486404rwj.1.1697026339316; Wed, 11 Oct 2023 05:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026339; cv=none; d=google.com; s=arc-20160816; b=G0YOFxRpWV82JKvHGaKJEH/o5x8cJT0bK8TEJ0PLPEEgE4X7mBCodLB46mqQL2vhFH inMJegUNf69H2bLEl+T67N1hkCAW7cdctQB3uNH1Gfd0JLhbLtpV754SnKmG/IOOpBEc RAFNDgUKxC1CFVjwAgvJb5q1Me0gkW4G8TFgmKdHy+LpL5t4cOQxZl/sLzckBxbqScQb TdqqYCGqM2M80FPnVb9w9FYCsxAmb2/8koX4lqCGHJ2bfYcXRjs9Ujw+E/LYsPGXYYqK BEijh4YXueykL8OQP+ri++5lfNquimDtH6NJWzlSPO0eI3QvlHeLFPLYdTbaoIiNk4pJ JF8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iTV/yldDdNeFa7KR560LkbzuRdncwWStAsZOIrIjz5U=; fh=uMsfw3Q10lbCwlOByNqQx2xNQZULDCpjJcfrWyTbCKo=; b=l3iZNnZ8nAX6F9CE9ULziheiSU8bYDzOsKiZsJ33M31E+r9U2YBr/qCtygObz1M00T nKvvvNRXZPMDyGnheNv9EjQFIblzXhoV9fEDNhjlDEdfLIYCOOdN9+tCo4uGBDqiR7DR mUeWkS2/nVGHVxawIupDTbzpgdiq7XyLDuL/wfJTF9QWfiA651dK1N0TNlh0dDLiJ511 q+TfmnyLHIq8678wD5vgDxaRC23xWIomhz9mZZ7tjOFkz+Yjc+YyP9c6Oe+TNf2ChQOL hRUkqSs261UkJO221Vq+mLttBmAEYQdaSMwZtLspM3Hjn8HBDorbflSLPdDF/I6V2G4h CPBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0zPYxIzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id r7-20020a63e507000000b00578d026e2eesi13702340pgh.283.2023.10.11.05.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0zPYxIzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BFCF9810AF50; Wed, 11 Oct 2023 05:12:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346400AbjJKMLQ (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346878AbjJKMKO (ORCPT ); Wed, 11 Oct 2023 08:10:14 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5A4D4A for ; Wed, 11 Oct 2023 05:09:42 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40684f53bfcso62661555e9.0 for ; Wed, 11 Oct 2023 05:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026170; x=1697630970; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iTV/yldDdNeFa7KR560LkbzuRdncwWStAsZOIrIjz5U=; b=0zPYxIzEMSSvLMcCqTDCjkilDhW45L2bHHXrg2B1P+TFNtfnEO4+qtlJm5qDiD40VG ZY+NoTHziSvFWVgu7/YNK25qQkS5mYOZZDpdjiYo3NPQ/ZOytYGVpEqhtYkz0oq+pPhP DJYNsEyyiGR78qDcgGsE7X2xbGTjOukZ27JyJ6+dX6zAJHEiiqlic0mkIasDriSHCLZz vVvqcsI90dUaNEvaYa49mIqV16zH0+5espkpChRQQVvtigJdBdN74mvsC5sux/71+iZC zDm/KDeCSh+gOqUT5zNOS/5VCX+Nsy5Pnu90+SD4VNRHmkJJnXYmhwL9oVwO1QNFTO5Q VhPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026170; x=1697630970; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iTV/yldDdNeFa7KR560LkbzuRdncwWStAsZOIrIjz5U=; b=BPHGDdqM2fAwYbr5+/ZEIL4ck/826orAjA21N/ejGdjrihObWq2Q6RXSBH8oHYhuFJ W3+Q4SW81CdRuTflcIIhB/TkkH3paGRvdNUguA5rqVBeGXv4ZlvFrtrsl4bXLtM8RQ3m fhJ4rKKrDYh8wBE0ZItILA0fwcdmHnFl3PmDZrcRk5NVkC+BmkDPJEQSrnVagGA85oRG 5ES9hfCbJnGkW2GQQ7yHZgkhqAno3w2+THwoLs2QO9RqP7/NCqbkZIlGzsjBXfAoIMAl /0XuS+3R7RyybsXrb76HAiLR2ThrM8l+5iS0GcOCgd9Kl0YjKs0syx4YAnXVGuJ7lu6x oazQ== X-Gm-Message-State: AOJu0Yz8vtw2FfOOM/RUT7gcJK7MJXlA5FLu3O9d7SpAGqq/Xlt8ViSz 5LPWP/U+pvk/T/2lzsx9HkCbRg== X-Received: by 2002:a1c:7c17:0:b0:3fe:ba7:f200 with SMTP id x23-20020a1c7c17000000b003fe0ba7f200mr18903722wmc.20.1697026169956; Wed, 11 Oct 2023 05:09:29 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:29 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Andy Shevchenko Subject: [PATCH v2 25/62] pinctrl: cy8c95x0: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:53 +0200 Message-Id: <20231011120830.49324-26-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:12:05 -0700 (PDT) X-Spam-Level: ** From: Bartosz Golaszewski Replace the pinctrl helpers taking the global GPIO number as argument with the improved variants that instead take a pointer to the GPIO chip and the controller-relative offset. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/pinctrl/pinctrl-cy8c95x0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index fae80b52a6fc..8c6006353515 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -554,7 +554,7 @@ static int cy8c95x0_read_regs_mask(struct cy8c95x0_pinctrl *chip, int reg, static int cy8c95x0_gpio_direction_input(struct gpio_chip *gc, unsigned int off) { - return pinctrl_gpio_direction_input(gc->base + off); + return pinctrl_gpio_direction_input_new(gc, off); } static int cy8c95x0_gpio_direction_output(struct gpio_chip *gc, @@ -571,7 +571,7 @@ static int cy8c95x0_gpio_direction_output(struct gpio_chip *gc, if (ret) return ret; - return pinctrl_gpio_direction_output(gc->base + off); + return pinctrl_gpio_direction_output_new(gc, off); } static int cy8c95x0_gpio_get_value(struct gpio_chip *gc, unsigned int off) -- 2.39.2