Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp487279lqb; Thu, 29 Feb 2024 06:50:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUj3BXH9rh+UfACaLo5KQkZFLIi0U03haAAULX8X97r1tG55DRRD1ImJG576WYVTCmCn1WIF8CtOhG9k1XFsEP+UXp0Rl29/qJb6ndrZQ== X-Google-Smtp-Source: AGHT+IERQCZ7hl8CtZIDFBgpjEW1VxxKjqd806ImBXRqUQ21bn2gA+r7ZVvb2fu2g7AlCb979P01 X-Received: by 2002:ac8:5990:0:b0:42e:6bae:f244 with SMTP id e16-20020ac85990000000b0042e6baef244mr2440935qte.31.1709218213105; Thu, 29 Feb 2024 06:50:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709218213; cv=pass; d=google.com; s=arc-20160816; b=Z6pGVvTqz7bpaGl+L5xJ+iacdBjSXgvIEad17YVSENh3GN1dTgmLNOSUy518kcw7pO ShklXUkXAvfe9RLzTar+x9IiZQejRIBZ1DIP5+yjr4fXD3D0PdxHbwfmd+F6/Fwf7dWK YCL0nK+cYGkUv2WJ3wYNfhxkqC84BheRQooLHOiaN13gxzwJWTOKP8RYsNePlEh+mtEi PtcJ0UUkHnQsXkTr+HRSZ8/DuYeU4WJ/WRe7sByb1EKAS2eo/UnT7UEs7VU+c5ktyVFI 0XPsecfwzul5tqbkmermqDw2BFLzgEpp8Td/5J2j6+EdE9AXPG0i1wy7d/1RWPT17sv7 3mDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DnM7hUzJMakmRHRawjI99fwcLjrwb38bDyUGKL7+51w=; fh=smFT0wMGCfFFCW2Q1xSYSg8WwnuK5IiTGMSxqDt29UM=; b=H9czPkaJxt/Is2NB58cfu5+muODJGv/GMBrSRRjSuEAiq8LRFHDpR47r7vWRhsAxL/ 5S3Tr0lwB23kWx1yi1Mv8EnYAi01nmUBxM9m0wA7JVe/v+1BK3ocwL1Gp00yZP524maV RdGNm7LksHK6FuKMN004VzJtScsoY1IHNTaBqYeG4uTiGHqFTSbTvsRhJ0PJIAvjV0Wi WMu9YiyG6r8jyPfRjdfUCr81i47gxACymxBp2dgWc8FMm+cUvivlQbfejhAEOh8q+gMX szZjb6ewonab5HmyNaZlsQPHTPRMGK6/bfflVSlovQ4Ty8pBlQg2jymyfrJEosFRZPHM IE2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E2D4aNTZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x11-20020ac87a8b000000b0042e24608caesi1412085qtr.654.2024.02.29.06.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E2D4aNTZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D35001C21811 for ; Thu, 29 Feb 2024 14:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46B80137C3F; Thu, 29 Feb 2024 14:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E2D4aNTZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 589AC137762; Thu, 29 Feb 2024 14:49:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218165; cv=none; b=kAPQ1LpGAeZgk4HJGcGGQlBpkcoHglP7q4GauJOcCvi6PN/oWK8KEqnzPDX3R+i1K/eHUm0LlD1JcInn5Ps4nXWWA5aq21BLTE/JD6Lk/4sFfhiewMp0p8OiADkNTlCoFb55PSUrtUGDA/zNi0E+e5OPpTVsBgwojBpzo1+UMcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218165; c=relaxed/simple; bh=o8tpaIa/V7fni6pjjD3Yr8h+WCEMSgwXfLuroPO4B5U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HIYlt8DmMX+q6xZ5ANEWm30msmqH+FZmcD2skONvGT+xJK1cxHv7lQFXlkLuIi7/B+FKCMbe92dJHCXx1GGwPheaj3KtglximeMgYE4IWyezfZau7CKWP1ME0XPv5hEmv1BDJ6VnmRhnLCi+UWc3tSAFoFrLHRFbMLukez/kPTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E2D4aNTZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1901EC433C7; Thu, 29 Feb 2024 14:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709218163; bh=o8tpaIa/V7fni6pjjD3Yr8h+WCEMSgwXfLuroPO4B5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E2D4aNTZm3hkOsgW8fCBdET1bIN8LHgIIrqPjtKS55WG8IfZmrpXr+jWMwvTlutae iZybrQ2d6y+4pkZrWqHRQDzpl9I8AvdOFJfi43QjtxUljzIoEQqhes78dsu9+7J36z YOf/mhe3Jot73QmV71QSX5wd1A+VTXf6CbWc2RS11rbz82fCrkM1ZmWOnGDUmew9mi 7STxamXOCFLQId2SaA3qIJDO5BiOT8vP54x38XGfmTeFheX0oUmVh5tFxjD6TWCDPt lCAioh9AqY0lNGKLFJ2VZrzlKSFZ9Qk9/Koj9CEOGONoZ5f+omQMQVp8Ks6Rs/XDnQ 9Jr/iGvDdf+/w== Date: Thu, 29 Feb 2024 14:49:16 +0000 From: Mark Brown To: Esteban Blanc Cc: Bhargav Raviprakash , linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jpanis@baylibre.com, devicetree@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, lgirdwood@gmail.com, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, nm@ti.com, vigneshr@ti.com, kristo@kernel.org Subject: Re: [PATCH v2 12/14] regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators Message-ID: <6fa04f9a-2904-4955-a219-d4962b8fe41b@sirena.org.uk> References: <20240223093701.66034-1-bhargav.r@ltts.com> <20240223093701.66034-13-bhargav.r@ltts.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C3RoV1h1koPrEpV2" Content-Disposition: inline In-Reply-To: X-Cookie: Marriage is the sole cause of divorce. --C3RoV1h1koPrEpV2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 29, 2024 at 03:42:50PM +0100, Esteban Blanc wrote: > On Fri Feb 23, 2024 at 10:36 AM CET, Bhargav Raviprakash wrote: > > + /* Number of interrupts supported by each voltage source */ > > + interrupt_cnt = (tps->chip_id == TPS6594) ? > > + ARRAY_SIZE(tps6594_buck1_irq_types) : > > + ARRAY_SIZE(tps65224_buck1_irq_types); > The comment is not adding anything, the name is clear and ARRAY_SIZE is > quite explicit. Also please don't abuse the ternery operator like this, write normal conditionals or for a case like this where we may get more options in future use switch statements. --C3RoV1h1koPrEpV2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXgmWwACgkQJNaLcl1U h9A7fQf+P2ZRUxZ1OFuQHOH8xAkdPC++bb/AEXvafquTsQ66dbQL5g71d50MIspZ IX+GgMjYnGvg2778K7NWelmOo8+rFfrTcICsI2FnZUHBqUj6kXJoNHXbX6Tojwj6 D+cbrt3TaG4fcH1T74uAvm4KKx3eY/MTFcQj7z1yx53Hw1YkaWKtI0RgTlw1H7Xw 32T/R5x/YQRm9S0iY4on0N/uT8h9fx7uUiu4F0sRw3nNpF/A6TlFA+kpLomxcZPm zf76GFUrrhZx9l/04KHjyHL9JDli6hIJV59GKFCKlFLT+yW3aAxnOteoKXjJmezk yx4zUcarBxQbkemGxR9n6H/h44ALBg== =FOEF -----END PGP SIGNATURE----- --C3RoV1h1koPrEpV2--