Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1412278lqt; Wed, 20 Mar 2024 03:17:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ7Hv6Yn+fSmA31hoEofYi3jgsRkMh/uwmaxaB1FRqn/AW7j+csGB0dWN7qsZhRBQ1iE6Xnc3uIk6lFVlobbCmccVo974K5sdD+n4RGw== X-Google-Smtp-Source: AGHT+IEOJUi8OcQa/KDi4gcoe222ScuwerIQVspOg5g3JJJZd0MiyzoTKUhfzK4HJ/SPz/2t4ySV X-Received: by 2002:a17:906:7db:b0:a46:aed5:2553 with SMTP id m27-20020a17090607db00b00a46aed52553mr4018551ejc.15.1710929873603; Wed, 20 Mar 2024 03:17:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710929873; cv=pass; d=google.com; s=arc-20160816; b=e9M5utY+tVZDTjfXyuBgMuJlZzf5I6vCg1Mhnr+jortLqT4/F6Y3rghhzY9b1+jScr O/hDbkbWkddVKoGgkh8yj/PsQ/RGESeLOVpTw9yyERF4E3WGATDwMU0/SCEURe+8lqCo rTHIeef7BbTysNQfaANmvjK94dNG8E8rNMnE1/sLpwTy7+DeHjcXz1AHPqQS77BDq1L9 VaZR8+b9A/9fb8BtbrTQWb7Bd3gErfr/zLpauOfuBCukfYsN8tzGQ+0lDTcEsjIsuVtA fHLJToOYKQbYE7HOY17DhNlEcN2OTaX0UM+OXzZy6UGh3UYhn7GS4k85QbgBul+cD/dP LiQg== 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=/bwkQAQSAx8y4oQZGmFO7nwLONmmuegwCmcvdTX7G2Q=; fh=cRrh3Z2riFwpxvnLMicSDUt57biJ2SwYVHzdto+ObIw=; b=N9VNTegpGmRPs+45zCysKW/5JC8XAtfitXLodoz0DezqRcK38Q2fYvTJcKEzwRszm1 xU8TLAdeS3ork3yjXaG6jA67jTI6zYvzrOX+A0Js+Jmg9LtBn7XoYhXLLaDyD+s2soa4 OG8MKfZk3gXYgSncAHGruTo+HOGqefj0Aw8oFpEmO5GaJb8fQE7PAGlicEokAil1vIDg qsfSceY+h2RHhRPd3dmt/Vy6G1gsxAS2uGcXa/Ogf0mOkxaefQHNX2JNkO2woPZd7caY pHct45PC9JiP8mqsaxaFMNpqHKmGnnzFE6RNQVGnsuPVD+fu2zrh968VVbhWXUS7xBj0 eT/w==; 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-108744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u6-20020a1709063b8600b00a46485678b2si6152349ejf.651.2024.03.20.03.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 03:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-108744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108744-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 56FEB1F21A01 for ; Wed, 20 Mar 2024 10:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EAF33D0A4; Wed, 20 Mar 2024 10:17:47 +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 EFEDB3C460; Wed, 20 Mar 2024 10:17:43 +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=1710929866; cv=none; b=XqLc+v4umiY3nMdj0KOXVHIQwkqAWYtotHaCgKNgsKy7tdMLcHpiXZf2JxFOfzpY2lkl8qk/Xq6Irmbbxs3WpSZxlRVqQ1bJZ5nP2iESqtcCVahdrGsCJ5+ZIU/ArK42NXfYiydUyUDW/An1xJPR77cj2Au9uxule415IqSXCas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710929866; c=relaxed/simple; bh=3c7SIBPcXa1tsEQ9GDQ8WzDWjWbomxFANSyFw4oyP7s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=vGPJeXQ7X4JL9ai1vEOl8byHu0KstpeAB9rb9v0yYEtEC+eENoc+Rq8o6YMYasH/88YRZnsDiY8mdWz4uOwION9Y+6CdMrGHU8HsAbd8d3IpR/roQOSB96wLYpwcFzrUVOqS/AKMDf//91A99u56mO5N0ywjW/8PM/rCnSoS8+k= 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: ExPPrGOtUKQdIoi8dq2mAWYU3xj1nV/gUZGFU94t9Yr6WLUA5BsTy+hmvaQFLzmnIzvomqXykr U4g0qZbSdOEg== Received: from unknown (HELO localhost.localdomain) ([192.168.34.55]) by esa2.ltts.com with ESMTP; 20 Mar 2024 15:47:39 +0530 From: Bhargav Raviprakash To: dan.carpenter@linaro.org Cc: arnd@arndb.de, bhargav.r@ltts.com, broonie@kernel.org, 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 v3 09/11] regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators Date: Wed, 20 Mar 2024 15:47:25 +0530 Message-Id: <20240320101725.464327-1-bhargav.r@ltts.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <4aee8c9a-43eb-45b4-bc23-e58aede18e54@moroto.mountain> References: <4aee8c9a-43eb-45b4-bc23-e58aede18e54@moroto.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, On Thu, 14 Mar 2024 16:30:09 +0300, Dan Carpenter wrote: > On Fri, Mar 08, 2024 at 04:04:53PM +0530, Bhargav Raviprakash wrote: > > @@ -374,11 +518,17 @@ static int tps6594_request_reg_irqs(struct platform_device *pdev, > > { > > struct tps6594_regulator_irq_type *irq_type; > > struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); > > - int j; > > + size_t j; > > int irq; > > int error; > > + size_t interrupt_cnt; > > + > > + if (tps->chip_id == TPS6594) > > + interrupt_cnt = ARRAY_SIZE(tps6594_buck1_irq_types); > > + else > > + interrupt_cnt = ARRAY_SIZE(tps65224_buck1_irq_types); > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > - for (j = 0; j < REGS_INT_NB; j++) { > > + for (j = 0; j < interrupt_cnt; j++) { > > irq_type = &tps6594_regs_irq_types[j]; > ^^^^^^^^^^^^^^^^^^^^^^ > > irq = platform_get_irq_byname(pdev, irq_type->irq_name); > > if (irq < 0) > > The tps6594_regs_irq_types pointer needs to be renamed or people won't > know it's holding tps65224_ data. Probably the function should be > renamed too. > > regards, > dan carpenter Thanks for the feedback! The name will be changed in the next version. Regards, Bhargav