Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp532036rdg; Thu, 12 Oct 2023 12:44:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3iSnXjJdqSDCnXEHsPxeJyoa7wupqm1s5MJM9+7ilA6brLAYUI2JkDP2ZSJfwDrBxi94R X-Received: by 2002:a17:903:2346:b0:1c6:25b2:b71a with SMTP id c6-20020a170903234600b001c625b2b71amr27423280plh.2.1697139854109; Thu, 12 Oct 2023 12:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697139854; cv=none; d=google.com; s=arc-20160816; b=AUDEe73DlxCSR4/6et/qoM8vDl3iwMXqAHZX3QVoqMGEM6kLxYy5B5vhEjqQfgo+ch pLQza5nmw4NILv/3Ax208D/NKm4OZFpPGGYGaRLae8G0Et16mGllrkVji3hl3pdDxvMf ooG8tJvYWTClIS0YIuqsGosTPmDmKel5dce3nda176s5WPVF0Ei5I862JqKqSFWnYHJx qfuTVvT0fDsTRGsMOWB69igzxasil530JSax54An/qwtWP+ZZv43bRoSidVmqFywRamv TwIHyopNLDQWOJweAFmv3bEnTzXoyPviHziwcsy+juGA3q0hgw6Vlf2NSUlH50gN+JJv Z2sA== 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=cCTkZ1fUfzbOuiGFP95DtfRNkhOQqqMvuxlQeJsCNtU=; fh=5aL/hiN4TXG3l6AwZTTTj/Z4GKRWUsr82zpSQc4L+Zo=; b=DQ3pwVUarwANWZR7Ghff0GwunWFjrGgNgPnLdvDHK+T/mUMataOtNBWV1AGwV7LLDK xzAtrGERmfFuKhXEdaLzbKR96Lh4fd6HdIBvZJ7bfqOicad7DggJ4WOqAiPRIHOBDlkz kqjgJC7arIRADTNegWW2DDAQkZUZ7G5nFVxfcCkOgDqUO/u+25xAYTtVOQEl/LuQQtI+ SGtx2Gmo94rbO1aaFP2je4ZCYH5vzyEKmlyBa3VBPGtRRPVvHpSQe1QwjpSwkzAp9Bcd 5nRUhQRD5A4eX9QGjZor7d2pgt2lRcOCOMU/5aRKmlnobSWrfBuw7KhWVF/Wj96/QHnD jI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=VVg2QvQy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s1-20020a170902c64100b001c737001bb3si2603522pls.345.2023.10.12.12.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:44:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=VVg2QvQy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id F13B1822C148; Thu, 12 Oct 2023 12:44:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442228AbjJLTnw (ORCPT + 99 others); Thu, 12 Oct 2023 15:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442098AbjJLTnv (ORCPT ); Thu, 12 Oct 2023 15:43:51 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3C49BB for ; Thu, 12 Oct 2023 12:43:49 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7ae1a075fc5so643880241.3 for ; Thu, 12 Oct 2023 12:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697139829; x=1697744629; 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=cCTkZ1fUfzbOuiGFP95DtfRNkhOQqqMvuxlQeJsCNtU=; b=VVg2QvQye4dIxRUI2Z9mI6zKw78UyyYt8NH3C5CZQFskyz2ZXQ/u+FtgMzVkKUqnIy kCSDPHfmweR52mI4GAnLupNXKWOAzLZBeVduDe43ib00pw9PpB2TPGpuqPCs4H0NvbP3 /S+fzz4dJMN0NosPjRW0AkCKlBvF/doN1PjOkIfbITKEwytGVmM6r/Q1WAEl6j2acyav apvSJ2X96P9MMwpkwVBmrooWk+CGB0pRDGbXP5pNDX29pZ9WoVYpdMjCQ+lSRFfHoxVT aW3ejbKthNPZpsmSVO3lpEeMTyTIvkKS4I1ftSzcdXggfPxfm/t+0VHM/hq05EDpgnAo zJ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697139829; x=1697744629; 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=cCTkZ1fUfzbOuiGFP95DtfRNkhOQqqMvuxlQeJsCNtU=; b=nK0Kc+SFGF6B3G7zywziKp6ivykxPLEvV1RgM5Wf8yBvXy48nDD9NhiAUHkVTotoR0 UZoquAOH1IiN0qtYoVCSyoCC3QW1mtNBYbazkm0IvlTMOFmLUUdAKnH2gRwDPVVT0ZGy WcLevyyJgN98P51tPlb36EiEZn3OZyK0DeWdkHtSgWrJpHCmO+GzTV+jgS06/Wd7Z4vk a/AW/9j2f4gaQOvGr6v4kdvk9CkoqE/E/pN/BEazUjCdyWHzcNbnP43fiPyP0zeBrJfe DIrM3wiL85wNgCa5JwSBCJzU9xZdBV4Bbwtkvah94qL9vq5Nk7Fi3SK9l9VlPorJnm2w c8tw== X-Gm-Message-State: AOJu0Yw9keB0xqNQPEc68BSkLjV3eb2oNhiZp4rSPcgNDGKU0RjsChEW 3ZkNMLbtMxALNzleFbDmLWL1M4MBV0Oxwyn70kCNMGKnU1QkqcAc X-Received: by 2002:a67:f043:0:b0:452:de00:7ab4 with SMTP id q3-20020a67f043000000b00452de007ab4mr25589596vsm.5.1697139828986; Thu, 12 Oct 2023 12:43:48 -0700 (PDT) MIME-Version: 1.0 References: <20231011120830.49324-1-brgl@bgdev.pl> <20231011120830.49324-32-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 12 Oct 2023 21:43:38 +0200 Message-ID: Subject: Re: [PATCH v2 31/62] pinctrl: remove pinctrl_gpio_request() To: Andy Shevchenko Cc: Linus Walleij , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:44:12 -0700 (PDT) On Wed, Oct 11, 2023 at 6:55=E2=80=AFPM Andy Shevchenko wrote: > > On Wed, Oct 11, 2023 at 02:07:59PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > There are no more users of pinctrl_gpio_request() so remove it. > > My question was and still is why can't we preserve most of the code? > It seems with changing a prototype to a new one and using a temporary var= iable > will reduce the diff noise quite a lot. > > Another question is can we actually derive old functions from _new ones? > > Like > > foo_new(struct gpio_chip *gc, unsigned int offset) > { > ...real implementation... > } > > foo(unsigned gpio) > { > ...something to get gpio chip and offset... > foo_new(gc, offset); > } > > ? Why would we do it? This is irrelevant for the final outcome. Bart > > -- > With Best Regards, > Andy Shevchenko > >