Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2464587rdb; Wed, 4 Oct 2023 01:49:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXk1c4eq2PYwl3cG1Z+cYm7odD7U4H/QIJP3cYeSP2DEkzwqZXs/ee0qbpHjC4TNoGiPPK X-Received: by 2002:a17:902:e98d:b0:1bb:9b29:20d9 with SMTP id f13-20020a170902e98d00b001bb9b2920d9mr1821989plb.20.1696409381765; Wed, 04 Oct 2023 01:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696409381; cv=none; d=google.com; s=arc-20160816; b=QLbE8ff3YsitJLRgFHhouEGWKKxRpGzoOJz6TGPqbIT3SHAFkPYFEFulWsjsKI786D M3gI3H7mLzBYhYUPMfBJJTSw5+mYTuooFZXh2w8Th2pKU0fTfCAHf7rnbi0uzuFk+Qoy rwiUW1QloYqDLL+npAmnU/4m2fkbaML290uqgm3VqCLqxN2KDggL6NF/0dbWMw2Ozruc 2QmT3kLF5GDB1xvS/LMZHFViRlkA1reD5JcOoq9zNDMR0cToG3OUwQBM4Sc3+lxKfLpa 4xdrgZG9lnfDUM2tavf8B8pBpVW1iUhsGOMsz2xHE2B1Xmcy6KHSoBMVReiigbmymwlc lMyw== 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=O+YzNfqTip4SK0su8p8tGtqQX78FmAMwOHUKfII9CPQ=; fh=YWJEGaD7pN8Mv/aWuK4UAz2dnXR8PmzolzRyv5DcIOQ=; b=lYtJE0sjMi/EtMmJLDCsGGa5JE5r8Is/KARlY2YYWwPBmOnlfcyNfMrKGbkjAXUNbA 7AcEtdVtCtbnhRvVMfmuJCBWKzmGm25jf9mFI4IBZ5D/vr7RtiAIMc1EZH1saXqCi264 HMp8/jE1CC9dv57lU5K/DOqQV131pb88/eA2Xgd/syNARyGNauAIIlVVsZ5d65jd1dT1 Uh3o1yD+ZmNieBypOcSsSzFts9moHH6InBIr5eb3sW8vviAVqJgYp2sVVVieK0MFE7xy JwPzQ1qz+RrdAgt6f1tXK3DQipWCqRz7a6fBhm1/Srb7OmiGaP9FYU+PRGAvWhlaYetR RKJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=j8E1xbCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n1-20020a170903404100b001c76a1aa6basi2930558pla.27.2023.10.04.01.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=j8E1xbCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id ACB1A81DD7C4; Wed, 4 Oct 2023 01:49:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232554AbjJDItl (ORCPT + 99 others); Wed, 4 Oct 2023 04:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232650AbjJDItk (ORCPT ); Wed, 4 Oct 2023 04:49:40 -0400 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55AB4A6 for ; Wed, 4 Oct 2023 01:49:37 -0700 (PDT) Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-49d0f24a815so837025e0c.2 for ; Wed, 04 Oct 2023 01:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696409376; x=1697014176; 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=O+YzNfqTip4SK0su8p8tGtqQX78FmAMwOHUKfII9CPQ=; b=j8E1xbCC2TqSQ77FFnCZw67BzRUnDR/bApmGCqaoi25r3wUR8wyaIUvz5e2/CTHi6A ol/SZxzCJBPtoZiMolyn/F7YSQ8aQbdEhriMrcd5g/O0s+vw9RbeiFlN68Qa/jD7zLW2 WorID5g79y97l2scWkvkR65l/31wCA+OUpHBOGqfj3PYwA0EU1744lg4C5D+HykbBtTs XAtCfLB8kzuXX0JILuWNipRUQZ+XuOflPk7BeLT4FO97/w7pOskkV2fTjcbvyyKdOPXI ggqq2zkWAXOQv+Ebw73wbEkUSjhmDYPVD6n+JrDpDMK5bMOJ7AGLwQTx9HAXhbK5zC2I bssg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696409376; x=1697014176; 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=O+YzNfqTip4SK0su8p8tGtqQX78FmAMwOHUKfII9CPQ=; b=uEPRXDDbZZvL9sKalE0QiXVnNeNDl9tl/MiYO/+bCX/ql+SRtqh/JaMvck85D68YK7 gBsx4zndyZBJ96uQVPAwf6NE1Xv67lpeDQFChWC8X6sEjlWj5BCPZw4kE9Pl5Fjm6/B/ vNQcqOF0DrY2KPuqCile/XqqNxlcS2eu+Yw8KswU3wexaM6ithkZ3kAe3NccWaSEZkm8 DybfkwKqu4SdjH5U7JZ5eBRsf0bNMIjRoLi4JbgBz7PFamxNV2vF4ED84sn70XYv040b z0OdC5Fvc2KoTNd49F0bTA6NlaBB/OGeIS5wpGgTfQnMMjVw2WWdQ+Go/JUKOA5kQVWT qMfg== X-Gm-Message-State: AOJu0YyKBJARCMGMmSNUS2+7f9Ibg3UgXKtZeh32E5haoRXrFBV0RL1H RwxvtEIMfU0tPoOSM2iyfayxOAGThD8F83iXA3HpuA== X-Received: by 2002:a1f:4887:0:b0:493:3491:ce89 with SMTP id v129-20020a1f4887000000b004933491ce89mr1155527vka.14.1696409376342; Wed, 04 Oct 2023 01:49:36 -0700 (PDT) MIME-Version: 1.0 References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-31-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 4 Oct 2023 10:49:25 +0200 Message-ID: Subject: Re: [PATCH 30/36] pinctrl: remove old GPIO helpers To: Andy Shevchenko , Linus Walleij Cc: 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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:49:40 -0700 (PDT) On Tue, Oct 3, 2023 at 5:21=E2=80=AFPM Andy Shevchenko wrote: > > 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. > I'd argue it just fold the code that lived in old functions into the new on= es... > First of all, it silently converts to RAII. Please, do this separately. ... and while at it, it already switches to SBRM because why copy outdated = code. > 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. > I'll wait for Linus to tell me if he prefers one big squashed commit or a fine-grained history (I prefer the latter) before spending time splitting this commit. Bart > -- > With Best Regards, > Andy Shevchenko