From nobody Tue Feb 10 01:31:27 2026 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5680744D020 for ; Thu, 22 Jan 2026 15:43:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096648; cv=none; b=t7VlpnPrQrLjfrwYbwXPIcr5s6NOKdI9XLvuoFPTJ3FfqjAABP9aECtAlj5ZYqWuFhbUWTZbEP5o8Qf5S5IX7GLBH6uFBEf5PPMTUfzbwdxwTxRMB24IQXaWnk1+vGCyo1L8zq6mfx4bNcUMbDSHwFhplCPj9Fm2aVWQlJ5rpC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096648; c=relaxed/simple; bh=nXl8zH7iFzy229o62R7F4gj8miBQeEJTl9anBMuQRqI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JZMe8N5LDw194tctbHW1/tEraJFVysL18huUgAReX/UIv8vuR1KAhcelP3XfIzPJBpiUxKgfJ3glhUV4U22Kh4Kf6reCzZl6xhpHzLvCFcxTEasWq2uCNPW76FH4heGdIAMCM2T820ntLs8pQ5jpYZtgbufSm88OXELwtghXai0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tO2LSVuG; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tO2LSVuG" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-b8715a4d9fdso139523666b.0 for ; Thu, 22 Jan 2026 07:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769096625; x=1769701425; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tXknWTh3C9IVP1+uTVL0nex1jtU7FLYUPa9Q3sm6Lzo=; b=tO2LSVuGx5cP1FioAQVwAi0naXXshHkUE5pkByQqralZGQ/nhKQ9Pb3nEPMPB7qc3Y MOPAN8rDcaIh9bS7TxU9mm3YDfmZn6WzMP9xFQzutOBdf1xHmAicpbiSlUiaeZYrFmLd cdX/oFZW3Bl0oprKRuilltjCkuhd6H1qoAY9t3iRIYUC2X8nDO21OxNeWo843PyI3Ali sDg+fo4WYKlJInY7UUvHQN/QzmeiwWNO2KCiHJx4aBcBEGGZe6tJVG7xzOGLMX0YEif4 GCfGwGyfGsY836+mdkIGvAmtHQXG6lqQOPBbc5hkx9p6AfwBSe8dEOE2gILP+/2ZOVDY Ih8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769096625; x=1769701425; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=tXknWTh3C9IVP1+uTVL0nex1jtU7FLYUPa9Q3sm6Lzo=; b=OVthdfmK3zzwzJr8PCcTkr1i4AUBryZaz1q3Hl64iji/v3FxS7jWeYnfIDcpQsiDNQ 9/9mOmvWQEIsEB+2RosG1tW7RQKzFTRZnI7+l7Ds684wdXr0B2oG9ssmJp8dqoBIlY5C g7kK0PDrywOB5/DVjRXxn7HQB3sMjlv/ch/DQ+3mttLACOcFeioJ0/o6U+NLNxPC4HKA cMrPzxKZs21gvKS9z3V+0tQiQ76u6P0njkgOKvce0xvwgGDF8gvHukssP3dbgsZSZIVs lPklUEdnhvc/n0jcKRZemKQ0ASCLCz57CvvTgwmzBIE6E5bniEd6X/mNCFZZFULOix7C qUsA== X-Forwarded-Encrypted: i=1; AJvYcCU8Huzw8dLmBgUuhoLYyxDhhioSh3dK0k0xT2BmdJWWi0XZqNpxQOImBLJwWgzE8e0DMGJRkwfZlaQpC/w=@vger.kernel.org X-Gm-Message-State: AOJu0YwzC6YzoyJhPO28ZEKLp29rAXU69k+z4ocLSX6CaL9iJF2mr29V WkCTZWsA/nrAfkeSQ+rLlP40DlgLh3Ye5PNz5xxdQSPI/ypC7PNq98Wwh6Fuw2uCeOo= X-Gm-Gg: AZuq6aI2uIBMm9On3kK8bHnu7eMOmTFcLVLXzYnNc0fIFiMxYjeBILdC6FC5gtjGy+H uFYtpovExJCk2imkX9wDYR32dN2rCUHV42fpT8rxnwIIO4SDdp1jQXdbGF4pSUSXKsHGYk5Is6/ cX6iJdkPqafkvOX7XVlxjs3QNcQaUHfmKOrgDdfetoVSZWMkrFw//vUK8m48gYWhQd+4vze346o i6MCSIXlt+iaH94pNLNduryTKkcm+QaaQUtXZVy4YrnRNwoJCcUrckvoU9HHdaxaK/dfbMYP2fC Gaby60xL1nIYR0eJHDs96A6jBuzHR/chpRxcjsADS/Fs5oQthywSnQw11NzvK6ind3v12beA4lc Lh3b4zSq5c11jg1hUeWHopEDD+PUSWco6KgIYg+qUBRO/Zke2lFrontfJJlFc2k+fnzJxlNBG7J IvBfBd7h+Gb/lnGLQ0GD6sj09VTvemyMJ03XciAQP+cPTz/OCpxEL5YZnC8uaIf6x292BsBxyhi ceWzwuWZ+vvRCgO X-Received: by 2002:a17:907:724e:b0:b88:47b4:7626 with SMTP id a640c23a62f3a-b8847b48388mr122935766b.27.1769096625207; Thu, 22 Jan 2026 07:43:45 -0800 (PST) Received: from puffmais2.c.googlers.com (244.175.141.34.bc.googleusercontent.com. [34.141.175.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-654535c49f4sm16334363a12.31.2026.01.22.07.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 07:43:44 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 22 Jan 2026 15:43:40 +0000 Subject: [PATCH v7 13/20] regulator: s2mps11: place constants on right side of comparison tests 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260122-s2mpg1x-regulators-v7-13-3b1f9831fffd@linaro.org> References: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@linaro.org> In-Reply-To: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski Cc: Peter Griffin , Will McVicker , Juan Yescas , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Krzysztof Kozlowski X-Mailer: b4 0.14.2 For the lines being changed, checkpatch reports: WARNING: Comparisons should place the constant on the right side of the= test Update the code accordingly. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andr=C3=A9 Draszik --- v3: - new patch --- drivers/regulator/s2mps11.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index 30586e9884bfb998ff07e3148813344b307506c0..8a36ab67b73e4151c7f67af0555= a6465ee1e7a04 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c @@ -1221,32 +1221,32 @@ static int s2mps11_pmic_probe(struct platform_devic= e *pdev) case S2MPS11X: rdev_num =3D ARRAY_SIZE(s2mps11_regulators); regulators =3D s2mps11_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mps11_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mps11_regulators) > S2MPS_REGULATOR_MAX); break; case S2MPS13X: rdev_num =3D ARRAY_SIZE(s2mps13_regulators); regulators =3D s2mps13_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mps13_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mps13_regulators) > S2MPS_REGULATOR_MAX); break; case S2MPS14X: rdev_num =3D ARRAY_SIZE(s2mps14_regulators); regulators =3D s2mps14_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mps14_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mps14_regulators) > S2MPS_REGULATOR_MAX); break; case S2MPS15X: rdev_num =3D ARRAY_SIZE(s2mps15_regulators); regulators =3D s2mps15_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mps15_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mps15_regulators) > S2MPS_REGULATOR_MAX); break; case S2MPU02: rdev_num =3D ARRAY_SIZE(s2mpu02_regulators); regulators =3D s2mpu02_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mpu02_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mpu02_regulators) > S2MPS_REGULATOR_MAX); break; case S2MPU05: rdev_num =3D ARRAY_SIZE(s2mpu05_regulators); regulators =3D s2mpu05_regulators; - BUILD_BUG_ON(S2MPS_REGULATOR_MAX < ARRAY_SIZE(s2mpu05_regulators)); + BUILD_BUG_ON(ARRAY_SIZE(s2mpu05_regulators) > S2MPS_REGULATOR_MAX); break; default: return dev_err_probe(&pdev->dev, -ENODEV, --=20 2.52.0.457.g6b5491de43-goog