Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp432963lqi; Thu, 7 Mar 2024 01:20:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW2wC2VffkJZbyPaASZW1UcutU1us3cBFOUQn9eVbkTiabzVh7rVBLi03KMcBlZPNFGMu+JRjutJmdrNMzOYe1rlCT0/QW8niIRopQZ5A== X-Google-Smtp-Source: AGHT+IGNU20MR4aXHbH7j6HhVjyw2zKSlHcBycPhkWT9C68l0x/+khGwomvZScTPYjDDCtpihyTv X-Received: by 2002:a05:6808:212a:b0:3c1:b61e:50f5 with SMTP id r42-20020a056808212a00b003c1b61e50f5mr9620402oiw.32.1709803231966; Thu, 07 Mar 2024 01:20:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709803231; cv=pass; d=google.com; s=arc-20160816; b=w7Ajz0bTm8kHjci1M0b/COQttYLpW9r6TOMoC63uAbk80CJ6kJXr4fT4hYHM2vK08r 5BV8khYZYuMHKmgl9nb8a2sk6fLrjMniZmGrN0raYAXQNNMji9jGDOju61iv2aVzz50C TfEjeKhKH3NglEABRPkhfxs7R25Y0AONezR9MeX/pTpHB0MFrylDRQlsKqEIMs42G8gF qntgH4I6mGd1jBGAgg0ttrU91lH7ZNs9x2PXV8wQ7ZtkApAnYGaHRfWiMsttkcomteEi oZpSQMgX35Yuu/RxL2ifbN8q0U+4DsAnzEyRj3WVKfJqI6OhxOnngf9R1C8PJM+pHhF5 fXzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:ironport-sdr; bh=hrVdlY3bX9AvwoSVKfBt1mIDYA2vLR0QnQx3+mHhup4=; fh=OPjxhfUS4tJOQTPTSYA3xt0x54y2JjuKNz0ASRYfS5I=; b=kiFALAFVcdRvp82dhAhiIKybvCq5LdaZQCFiZAKsJBgk664n3ogTR3TpKZSNVPAXd2 i9DJEFnofGFJU63N4XDcl/NCX2aqznMmhsosW1XWnLkjSUsP0ZgNpCQkIXGC+FZ9jRcg 4I/bNZ/8Rv9z+nPn98kFL/rCYzI8SEnjwfMpst1sBlBe2e6dM10uqBZHCbW6m8BETyeL 8YLrVMPTkcZ8dzTrPlRZvPvmhXRbvz4Y1yWpeeZxPT+3M4QQzIl23bfOadvdUcs2LBCn m9p8S3ixoR5S43vBPMQQHIgOvAa+LYIkAgJSY49gf33wRNUmMVMempQLUkPYw9PJ7yRW thhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-95199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j10-20020a63fc0a000000b005e44b4902dcsi13245741pgi.512.2024.03.07.01.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:20:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-95199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 57DFEB20D64 for ; Thu, 7 Mar 2024 09:18:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22190839FF; Thu, 7 Mar 2024 09:18:41 +0000 (UTC) Received: from esa2.ltts.com (unknown [14.140.155.42]) (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 F281A839F6; Thu, 7 Mar 2024 09:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=14.140.155.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803120; cv=none; b=Ul1QCliAoQL7AS7rOZzzqc4SLK4tOG4evVhMSCoWxRe0nCHn1DWFdEbPZ38UEBweA+ZQWRvVovSTrWxW5Oid3tyiU0bNez59zLKhImPhOPuAnhn9sQAqrWcEvB1lvC8+wHGDko+57unIsjmLnKqMKaUTmc8V3yeiHuHRU+aqOlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709803120; c=relaxed/simple; bh=T4FiHVTAJAfthIiOc24UxKIA2+yHHEcgJD6hGrrdgmk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VRoWAjvtpGtGkNRNLtdq9Q4snGi7I9BpSpT85p8h0dwMskFQuH/Fsk7qFRq4VT0FKfPLAZfc4V/agYCw/Uu76XhWs32D4usaTgOTZJHNSrAI28w/VlvHvWy/DAPdYiO5uZS1E1G6PPOQS1O++cAsfkd/0MlKPNm2MisvdKcxMmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com; spf=pass smtp.mailfrom=ltts.com; arc=none smtp.client-ip=14.140.155.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ltts.com IronPort-SDR: s2r9boCswk44kgrxVXVgIt3dntph98vGssg0BeLOWdvmdoRI/88/B2hDmLZQasT+h6VJXxxpl7 JNy2VA8uiQ7A== Received: from unknown (HELO localhost.localdomain) ([192.168.34.55]) by esa2.ltts.com with ESMTP; 07 Mar 2024 14:48:33 +0530 From: Bhargav Raviprakash To: broonie@kernel.org Cc: arnd@arndb.de, bhargav.r@ltts.com, conor+dt@kernel.org, devicetree@vger.kernel.org, eblanc@baylibre.com, gregkh@linuxfoundation.org, jpanis@baylibre.com, kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, lgirdwood@gmail.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, nm@ti.com, robh+dt@kernel.org, vigneshr@ti.com Subject: Re: [PATCH v2 12/14] regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators Date: Thu, 7 Mar 2024 14:48:23 +0530 Message-Id: <20240307091823.171504-1-bhargav.r@ltts.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <6fa04f9a-2904-4955-a219-d4962b8fe41b@sirena.org.uk> References: <6fa04f9a-2904-4955-a219-d4962b8fe41b@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, On Thu, 29 Feb 2024 14:49:16 +0000, Mark Brown wrote: > 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. Got it! will fix it in the next version. Regards, Bhargav