Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1953364rwd; Wed, 17 May 2023 03:53:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4v7x9N/GPITOnNdMMH3BCi3L94MWPVHXJvh5ZZ2eAqu3R4MGJtFz44SRCryQ3p/t3aRUPf X-Received: by 2002:a17:90b:3701:b0:24e:5fe6:76e8 with SMTP id mg1-20020a17090b370100b0024e5fe676e8mr40324141pjb.15.1684320819083; Wed, 17 May 2023 03:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684320819; cv=none; d=google.com; s=arc-20160816; b=e3cmun4ooBwve8p02QVDzqlBb0AGuReAH8HgvGP6Dv1+6T00ibfBm51mfzXIPZH0r6 y+dHSSCwqcZ70FKTEas+0mT7qip3wqTCNDcTpXo0FZnBHMi05TAq0Zc6X2lcJyviBdMH 6piJB1gZii1iI2UOwmONVU7R3vMAT6jWUcqSTqeJ77Np/utd4FqaI3XOaqxJt0hLXGw1 QiR0eTetSmdtWdOBGeQqwCwSr6UluAooZLtAhHJw+pPxBtK5zcbh2Ru/aZw55lwAKN6w gvVGakwK5ioAH4HMEqWdnHpe8STR/ny/8SayebTNHlBlwm2fuaQPYOfShlCQqLhGjWHJ 1Kwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=3ai+XJcD6q02E74/RveX4hPtq3MlwXKz1QHBcBUcFNo=; b=F82okBHNUIvma9P0JA6rE90+Z7fkVj9e28SdmJztk2xDP6Y5OB4ARx924ovVQZFCFq jWcqfqVzi3wzzolNS8OesVtjqbrPgRyPD6W+AJVnYdejhuimrSvnI8c9dRLX3eWRMJOf 2zGX+lKZAE+y2nwguNlVjuWNIpLIrfRvwtXOGR4Qyd8DjYAYUwE7r0s5sOZaQGRusRc0 f8csH4ZfFfUfZclCO9EDB5b5mTYsUb8PmAh+BbqHr6n9ekbJEbleXmjI1WD60keu4frY oY0MmNVK6f0HLjtrxGICSFV3W6OVt95adwVSFggIUxo9O1QQK2YnZE3ZXY4AjlYhZsyX 9pHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=NYPWtNMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb13-20020a17090b4a4d00b0025289bc1cc3si1578147pjb.66.2023.05.17.03.53.26; Wed, 17 May 2023 03:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=NYPWtNMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbjEQJ7M (ORCPT + 99 others); Wed, 17 May 2023 05:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjEQJ7K (ORCPT ); Wed, 17 May 2023 05:59:10 -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 B080859FF for ; Wed, 17 May 2023 02:59:00 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f49bf0223cso5545625e9.1 for ; Wed, 17 May 2023 02:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1684317539; x=1686909539; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3ai+XJcD6q02E74/RveX4hPtq3MlwXKz1QHBcBUcFNo=; b=NYPWtNMpM/bWn2LM8NEIe3TP3xMkwDSnDKxRs2mcUsAWBI5r8202lrNKrOzFsUDasn 9qiOQRjjWpzU0A5euUFl5+yUgZ/Hed1+v/UwQ//qMwAb1jsJrLmQOJZLUNJUnI9sGwJA LSUbHAtu37E7Im/L4tRgnb9Gnq6UtI9e2Y+cbV6EHrwmxQ0tqMkqyecNaq1RC6wdGV9O hYabnvN5IBi27WEdrUVSk5FAF9RIEAiLSul39oFq5TTo2ndOEq6SxYk9B3GssMwTPhae XiCB3XSCcAJBaBWgtsd2MI8m2jpzyANAAmbezvyI5GbRDhgNoe5POlyUH/9pR2287gd8 44MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684317539; x=1686909539; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3ai+XJcD6q02E74/RveX4hPtq3MlwXKz1QHBcBUcFNo=; b=RN8DvckzDpUjsoDEmgzP+BmrafA6/v1/pPk315gcNqv0OFMmLmhNnpj9jmS2tldWFp 2z88ltNoQU4dH3JMJR1DtexulF/xzCMsriojWUS4FXOeSD0trSUaATmk7W/vrKxa3ZeW Q9yuTsOsaqzSasTL0p6fFy7x4F1J0zYfPZs39fKtOyn0+9sr4GWISs3bkjbcatDSi9af LMQxGkO+L29/7cg8Tdi6ltahb2lWSgAhpqna8keh2unlCaCOx/rr4gc97irvXxuUQkLs 6agdzqNMr4OnxGIe9rNipA4Fgmp08Jtduq7cwSoR/019nX8OsaBV146HleiZjJk5qiX0 HOVQ== X-Gm-Message-State: AC+VfDzS3V690FTja7rZnM13YPMtB0VE7EwI0lvG0COr2/ceAOMwXkd9 EgUKk55mvKnbg/P7hiWhUN1p0w== X-Received: by 2002:a1c:4c08:0:b0:3f4:2737:a016 with SMTP id z8-20020a1c4c08000000b003f42737a016mr20100741wmf.29.1684317538966; Wed, 17 May 2023 02:58:58 -0700 (PDT) Received: from localhost ([2a01:e0a:28d:66d0:5b2e:1428:59f1:44a4]) by smtp.gmail.com with ESMTPSA id z3-20020a5d6543000000b002fda1b12a0bsm2237051wrv.2.2023.05.17.02.58.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 02:58:58 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 17 May 2023 11:58:57 +0200 Message-Id: From: "Esteban Blanc" To: "Andy Shevchenko" Cc: , , , , , , , , , , , , Subject: Re: [PATCH v4 2/3] pinctrl: tps6594: Add driver for TPS6594 pinctrl and GPIOs X-Mailer: aerc 0.14.0 References: <20230512141755.1712358-1-eblanc@baylibre.com> <20230512141755.1712358-3-eblanc@baylibre.com> In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Tue May 16, 2023 at 6:48 PM CEST, Andy Shevchenko wrote: > On Tue, May 16, 2023 at 4:05=E2=80=AFPM Esteban Blanc wrote: > > On Fri May 12, 2023 at 7:07 PM CEST, wrote: > > > Fri, May 12, 2023 at 04:17:54PM +0200, Esteban Blanc kirjoitti: ... > > > > -#define TPS6594_REG_GPIOX_CONF(gpio_inst) (0x31 + (gpio_i= nst)) > > > > +#define TPS6594_REG_GPIO1_CONF 0x31 > > > > +#define TPS6594_REG_GPIOX_CONF(gpio_inst) (TPS6594_REG_GPIO1_CONF= + (gpio_inst)) > > > > > > Why? The original code with parameter 0 will issue the same. > > > > I felt that replacing 0x31 with a constant would make the computation > > in TPS6594_REG_GPIOX_CONFIG more understandable. What do you think? > > The question is why that register is so special that you need to have > it as a constant explicitly? It is not special, it's just the first one of the serie of config registers. I felt like just having 0x31 without context was a bit weird Best regards, --=20 Esteban Blanc BayLibre