Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1104586lqo; Thu, 9 May 2024 05:07:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVazqs8SHi58MFmhVMqPARfoAL8MxRvcCn3QWlLNP8WxBIJnGZ8r5Wt3byHJ0m2awpgV3cv/ZLSKvuZ6fpsZ1eWvDJcwpCBn+UTJL0Ttg== X-Google-Smtp-Source: AGHT+IFT4lCfe/EJoye8VmSeU47yWWXb7NhSv4baNEXlKQSqxw48px7s/52bhaTlraEypNnH6tyi X-Received: by 2002:a17:906:1b08:b0:a59:c9b1:cb68 with SMTP id a640c23a62f3a-a59fb94a628mr364835866b.7.1715256437473; Thu, 09 May 2024 05:07:17 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17946361si76420766b.51.2024.05.09.05.07.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174466-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=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-174466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 2ED061F2175D for ; Thu, 9 May 2024 12:07:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5100914B09C; Thu, 9 May 2024 12:07:07 +0000 (UTC) Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) (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 5A93312F582 for ; Thu, 9 May 2024 12:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256426; cv=none; b=T26C7TEPh+DcCrSTb9Ve2fH/aGWLlk4tGjp8V3oQCF8g9x+7XPSCR1Jvu/PmGpMLTDclQ/6E9ZS45NkhYDGEx5PVtfLvBaEKv5o0YC+MirOia9oo1keDV2nkOh1PcTz/a3gRUBSGM0A6gFAApJ+vMrbp4CJXVjHre/lf2JMWzlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256426; c=relaxed/simple; bh=kpbzqpy6Rhe5iTf0LFJ+eXVAVyIAjSiwFfmOtEu0JAM=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XC3gAHD2AGtCJB8HlNxDXJDjacMTMO+9wAo0Y3rSFVj3pLSlUgn9YsUZPHQOnPoTnt+LIydoeLgOyiSCax1cEVAOVv5fADu4zlWo70IS1Ip1C6PqloPhQWwdcltIWPS3rwyhfdsC0XCGp1RYVZP/QDSIqzztwHsLhEGrxkqSKws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-25-208.elisa-laajakaista.fi [88.113.25.208]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id a526c7aa-0dfc-11ef-b972-005056bdfda7; Thu, 09 May 2024 15:07:02 +0300 (EEST) From: Andy Shevchenko Date: Thu, 9 May 2024 15:07:02 +0300 To: Stephen Boyd Cc: Bjorn Andersson , Johan Hovold , Lee Jones , Linus Walleij , Mark Brown , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 12/13] regulator: add pm8008 pmic regulator driver Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-13-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Wed, May 08, 2024 at 10:37:50PM +0000, Stephen Boyd kirjoitti: > Quoting Johan Hovold (2024-05-06 08:08:29) .. > > + BUILD_BUG_ON((ARRAY_SIZE(pldo_ranges) != 1) || > > This should be an && not || right? > > + (ARRAY_SIZE(nldo_ranges) != 1)); In any case BUILD_BUG_ON() is not encouraged for such cases, it would be much better to have a static_assert() near to one of those arrays. -- With Best Regards, Andy Shevchenko