Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2019726rdb; Tue, 3 Oct 2023 08:03:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEb+B19mN2WZTdwJlAwm3sQhXSz4xmm/c7Fr7BQQtDSLF+eIJCxDyZcazHIPePdjanQUapN X-Received: by 2002:a17:90a:ab14:b0:267:f094:afcf with SMTP id m20-20020a17090aab1400b00267f094afcfmr12280639pjq.12.1696345389217; Tue, 03 Oct 2023 08:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345389; cv=none; d=google.com; s=arc-20160816; b=KH2rA/2L56HXU8i3yNPDkiXdoHCmwKdyqvbl0447AoYXpiVYCm9tpvf/lpE9U2j3/w aQl4WfXDcfVDfZav3N+c4Op6AxRECnt97iv1FEAfJ4xzolGG+l+8b88ozMDCPsQQas6n XJeNGpkH/Y3tLvEiq5SbaT68M6xfYyDbWHH0rmFnuD/zYkHrynycJJ2QUEr+iFNp32GT BAbdgHvLA7ZJJMLaqf0SUsBCX4hRG9cO/Nr0yyBMDwYCAbBopVSt8TQjNr1EAY4Pnq8l h6ACeW/xSVRms/DR+pC8ENIpTK/9psnacwXL9o6eYb01oTMNbnj+9coNfrs9VtXLKqSK ij/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nS+ccFeanplUyxIAlft8qH746KZhH4ap1TG1HVN92IU=; fh=YzFeta9wbBtFdHfbuNysZnSe7+crMJ4Xa6Ln/x8p/7A=; b=iMn1aXR3mRPsW2BkxS1Xps0+K3bSsT11i9YXH4sHqdk6dbfANu4Mb1RdRpeIk/rdN/ GKOWeCLSTuCJGkqPerQhExC9yenPlqevALPbr+IIwn+wi1vaoWcTT/i2MvCXQ12QHVli ywAiVXE1ydowSNtWxJQk43sAnWtgY2YCfV0hk5QeyImY0fYtkO6LcdCyJgApdk9BW3Bo WPibttkEKOg5p1j1/3i7xdmray0dwkdmZNGuJXNB2sBtYCyJ7l39Nm855sXVlldL08Gv 6DCpT0S9OBoj8wFjq9KXMyb/rlCu5axEqZIH0iAe5/J6dGYfZn5QAmR7+dKnex+Xeqig dPzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LbedeaLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id lk12-20020a17090b33cc00b002791b907f0csi8438898pjb.121.2023.10.03.08.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:03:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LbedeaLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 42DE58023189; Tue, 3 Oct 2023 08:03:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjJCPCx (ORCPT + 99 others); Tue, 3 Oct 2023 11:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbjJCPCw (ORCPT ); Tue, 3 Oct 2023 11:02:52 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE34AD; Tue, 3 Oct 2023 08:02:48 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6910ea9cca1so748223b3a.1; Tue, 03 Oct 2023 08:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696345366; x=1696950166; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nS+ccFeanplUyxIAlft8qH746KZhH4ap1TG1HVN92IU=; b=LbedeaLwiCYjXXw1pOktqAKzimNV7sS/zTucQGcRInTqDMp5bAkym2al0IeR27fUXJ i/gs/JXWwKaFJWeANhpMBsS/BUC7lKKBpRcdmM90Urxc+WE3tQjta9vBmX3F0vApKWOC FEvYRQwHs7f/cwg/E1xITn2wfBMCyt0wDoVaEnHbgPUfKK3wnIOEPgqq2dKaQuH6ATuH /GVZxCTkHdDw7UeD140jmh96sc86xoorrb0w0HzPqC2LL1fNgWX+DvX78uDkKmB6idIu 6elbc/8cTG8o4eEt4MRwkEaviVDxHGxBPRTTCovnmsaNBmLbEwEsUxsVX0ZhsKXSyd/O Nk/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696345366; x=1696950166; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nS+ccFeanplUyxIAlft8qH746KZhH4ap1TG1HVN92IU=; b=sFaUw1mdfNqrNKJzeGF5/r+oWQ9grW6u//2hv35cStl2sv+cJSh53HEMxyNNIij8Du TLnFfUSio5C+8usVymJj2uP7ucfHiit/kAfLbnQyC9Xp1Jd+yO7ZA3JJMpSDQIw6lzYd ioqT4aygB7LTl2+eOzaPbErOVfXn04xbv8toQELxROics0uly9opWVK4NwMP6GYO4yVQ 8J9XnFzrUI5YN1o7s2rUxg7H2xFtHv4pdoIxKKB/+HPzMneL0CVMD8NwhBiixFgGWuv/ akeW27BMNl6EO/EWo/AZbFvXoCF6WjntPpBVJ6OAZNE4o52x8505FTIDM81xbbMiv/VI b5LQ== X-Gm-Message-State: AOJu0YxXP8uhh3o6N74Q5zDjfyH3vIQaHaS+c19QqKIdgTiUx8BhGrBF 4Ok+5evwQzT31xS7L9qvfnI= X-Received: by 2002:a05:6a20:9144:b0:154:6480:83a4 with SMTP id x4-20020a056a20914400b00154648083a4mr13485861pzc.14.1696345365695; Tue, 03 Oct 2023 08:02:45 -0700 (PDT) Received: from sol (14-200-166-90.static.tpgi.com.au. [14.200.166.90]) by smtp.gmail.com with ESMTPSA id n15-20020a63b44f000000b00578cc5f4905sm1335986pgu.28.2023.10.03.08.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:02:45 -0700 (PDT) Date: Tue, 3 Oct 2023 23:02:40 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: Linus Walleij , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 04/36] gpio: cdev: use pinctrl_gpio_can_use_line_new() Message-ID: References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-5-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231003145114.21637-5-brgl@bgdev.pl> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:03:04 -0700 (PDT) On Tue, Oct 03, 2023 at 04:50:42PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the improved variant of pinctrl_gpio_can_use_line() which takes a > pointer to the gpio_chip and a controller-relative offset. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/gpio/gpiolib-cdev.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c > index 31fc71a612c2..54ee075410db 100644 > --- a/drivers/gpio/gpiolib-cdev.c > +++ b/drivers/gpio/gpiolib-cdev.c > @@ -2287,8 +2287,7 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, > * FIXME: find a non-racy way to retrieve this information. Maybe a > * lock common to both frameworks? > */ > - ok_for_pinctrl = > - pinctrl_gpio_can_use_line(gc->base + info->offset); > + ok_for_pinctrl = pinctrl_gpio_can_use_line_new(gc, info->offset); > _new?? In what sense? I agree with the change in principle, just not comfortable with the naming. Cheers, Kent.