Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2033894rdb; Tue, 3 Oct 2023 08:21:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtRKPVsushhoDPzLCNQD4ykMxUyqfWuXm8Dp4GLtCbxj1kf3zVN5qdpUfj8E2MRufplsw+ X-Received: by 2002:a17:902:b282:b0:1c3:3363:8aea with SMTP id u2-20020a170902b28200b001c333638aeamr11091201plr.61.1696346495165; Tue, 03 Oct 2023 08:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696346495; cv=none; d=google.com; s=arc-20160816; b=T5BrTtNxKWI00mIdIxN6r/AvHXEIa442l7pxQ0j3Hp5E3JK0ackcSJfNnGyk5Eqxuw GDlLBrYbFE3Q195E/mhckFpwMgU7Wd/q36oCBb+TseFk/V2N5vzh7dAtM6bPw6Vhgm/0 BKL9UpKgV1RATcI0dJr9UfvWZmic21xlQuwqfNg1p7DjQdhBTbLkUdOIyklS3v5kE5vQ zNXDVkZbtZAm1m/kDd36pgOFGb+ObuMQVhyb4aFxXWYlsUgM+Qsnyqhy2NYTCC2/aTj9 e6AFcHBsJA/Db6jA2cevOZ0qtr9IyNul9pGCclh80PP+Ize1rQrdk7qzOfiCYK4euiJ+ FL3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1z9Omi3EfSCh5yQBotfP7z50wuoV8LxiixPm+3LhYpQ=; fh=YzFeta9wbBtFdHfbuNysZnSe7+crMJ4Xa6Ln/x8p/7A=; b=gX79lXvvaahY7sBp3V+e8IRwVlWO3SQYWB1lyvXc1/WiuNFGeojNVj5/kB7cOhLLDS NOWvJfBAz5/AJsq6KdcE9E9sRNUudRfOk9IMm/QzOEzgUvBjWa+ouCiA/80++3Z21Jj6 t/wUCtKgQNTlxFyZea6ex42lfKwPKrWGLeASR6d88FXCuXYaobnd7tQSRid43aKPxVdc IgdLFIwZ0ysa2ZJuc7SdraDysR5LI3slO4dAFXQ2xbRCZeL1hfrAjZZyGoS6B+a0uFby 9cacpcPrJdwvJGxDDmDt6grQOk3HNUpi9RvcPp6uSxF/xHguHhPh8ObfVry3EhuOZ+6G y0hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W/uABWY7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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. [23.128.96.32]) by mx.google.com with ESMTPS id t7-20020a1709027fc700b001c7245a1e73si1641239plb.32.2023.10.03.08.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W/uABWY7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 3E3CB8144186; Tue, 3 Oct 2023 08:21:30 -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 S231443AbjJCPVW (ORCPT + 99 others); Tue, 3 Oct 2023 11:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjJCPVV (ORCPT ); Tue, 3 Oct 2023 11:21:21 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C054083; Tue, 3 Oct 2023 08:21:17 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6c67060fdfaso720837a34.2; Tue, 03 Oct 2023 08:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696346477; x=1696951277; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1z9Omi3EfSCh5yQBotfP7z50wuoV8LxiixPm+3LhYpQ=; b=W/uABWY7+nWORqtxp2xxh3C9pESQRDAXnESbr9XkTG9k3BVAWuHFom+I1PrAhimvtY mqKu1JBNvVP5gL5mJdRFgztku2SJ0DJNtMSnArNeOdJ+KThWZRKUQjp1vwYT5R2lwLCu ZxTHb2iG0zHN6geSe4B2Hx9urNjNUVvuh04dDz6Kvp8oHDLz6f+HMqXm08XIk9CU1avL CAQiVxYc7QY83rVFIwTrhv5JDQY1TBXimvREC/n1jF0OA+iFIX51+LIoyyn9iO76gj2x 9SwBokj/p/7z3aAj1WRTq7gyGOUi4bxvizUB1FDkuvHfdDxJGp96dsxpNr2cJOiUSBaM kevw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696346477; x=1696951277; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1z9Omi3EfSCh5yQBotfP7z50wuoV8LxiixPm+3LhYpQ=; b=CWtujNoZaur6xqGH5d6HpYilwtlw2x6teeMya8wMhoSho0TItzy/fb21CXv/mDbpGY ZBl5crE1NufgbsF5Wp2Y4mZI2FVQJQRj/cGBJxjjEbKxemzE8y5dANHdUX5KjO2rTTOy MmuZ86WT+8far9eYrcLTc5pKL0rYSQD7dt9aGiJXWvPS5AOcvwmODU4vQkY2frbW8Ul+ UAMigfC0YDISOM7SXbj1LgdpoXzbqe0d/Z+rHRpLkMmTGow7r/YhPkOSdrwsR3MJnEOa MSE0FsdociA1FVHu4G+a0kS7/gfhfUyM7OTldw7EuCmcskAhocROvO3tQLXM2p59TQdq ew1g== X-Gm-Message-State: AOJu0YxShHN0valcvhHvWegu88zJah3uxMLLCBKf+iDOZoABtPrsZFh9 +pHxSaMuutHeyW2dHkgT0RAXOTIN8VBCWsVjN44= X-Received: by 2002:a05:6808:92:b0:3a8:5fd6:f4cf with SMTP id s18-20020a056808009200b003a85fd6f4cfmr15159009oic.22.1696346477021; Tue, 03 Oct 2023 08:21:17 -0700 (PDT) MIME-Version: 1.0 References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-31-brgl@bgdev.pl> In-Reply-To: <20231003145114.21637-31-brgl@bgdev.pl> From: Andy Shevchenko Date: Tue, 3 Oct 2023 18:20:40 +0300 Message-ID: Subject: Re: [PATCH 30/36] pinctrl: remove old GPIO helpers To: Bartosz Golaszewski Cc: Linus Walleij , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:21:30 -0700 (PDT) On Tue, Oct 3, 2023 at 5:51=E2=80=AFPM Bartosz Golaszewski = wrote: > > From: Bartosz Golaszewski > > Old variants of pinctrl GPIO helpers are no longer used. Let's remove > them as well as convert all static functions in pinctrl/core.c that > still deal with global GPIO numbers to using the gpio_chip + offset > pairs. This patch does three thighs as I see it. First of all, it silently converts to RAII. Please, do this separately. Second, it shuffles a lot of code between old and new implementations. What I prefer to see is what the subject tells: only "-" (minus) lines. Third, it will become easier if you name the "new" functions better to begin with, it will help a lot here. --=20 With Best Regards, Andy Shevchenko