From nobody Mon Feb 9 20:11:18 2026 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 34D8232C92E for ; Mon, 5 Jan 2026 09:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603717; cv=none; b=WROwyUWEUXQhRyrBKpdxwfTb+qfas0tHjR77fy7ZrAfCMBDD9+MhTlsVs5MBihcbH4d46ROC1bJmr3Qo85DjH1bKK5v9l81DsSgBTYmKsMqf13WYHt8hrs4QPM1LGYroKjC4FOG5SQwNe34sw/MmupSN3Q7bK7xaBWN1QOwaO3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603717; c=relaxed/simple; bh=e/SiWjAnIf9n3ju1+W9LofDtIoMCJ1iK1OR2/pq7g/4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XPMJ4Qlam44xHz8omirKjiVEcxDpwWnjZK8SLlTp9V7MyCpZ8QxAypthJhZTerdT4lhBJDpfaBWahoFJDY2BOJvP2R1RN6cf983gerBwta0mVmiw2gdf0MmSw0cqyHZdscJG/rWoAUlpYuC6yAvcSjJFnYG2DbVsbyMz7zJVj6o= 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=CoIahxUW; arc=none smtp.client-ip=209.85.218.41 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="CoIahxUW" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b79f8f7ea43so3391343466b.2 for ; Mon, 05 Jan 2026 01:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767603708; x=1768208508; 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=ZoLuiqrhFtLQqv/1rhd/SpsoL8e5z9S5UPDgQu4V1bM=; b=CoIahxUWEUKGXwD5wfSWlTEuehk7jV60T+EiZcDiHhgYoOCB0dRt+i8iqkk2BmcVtC Iii9z3m5CyswxnKtk8XDEsg3+EuVb1JfvgscIEPg+90lWPwDfPu1tD+S7X2X+T3zAEHZ 4SjLuxH24xz0u6eLK9e0YjR8HicIvB8XhmQY0N0AtvbBnjSjMec3M7bGUE9BoiWrziHg 6S4m+QLv6dI+Kwswxhb0SoyucHjsiRONPNl8NzlA/ChebKSvqI7vy3mOR2ONpwZl2eAt 9v1zSv87YuFkkYSxPBgJbdodWrDcyaoh8aHenM9VPLhdon7N4V3paCyU7SQmkaoH/upX RuKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767603708; x=1768208508; 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=ZoLuiqrhFtLQqv/1rhd/SpsoL8e5z9S5UPDgQu4V1bM=; b=svA6OKjUqswbKzBxTbxT1hwxMVa0XJWewSWNjUpDKNlD/nX6reGF7KsIs2dbM1zIZL w7cs1ZJl2RO0yZKGUYlHt6GSbX2ynFAVJa7VkdSHD53pKfAjfnWoR1wMu4AVfmGlNwWk j7Pmh9nLBuEPF7JD9sy3YeTe+WLWG8x1BZrFpgvLRr4X3DVcynvZpGGjLQmVUtMQ3oFB Li3zHKHd5mHzjcAehNqK5WTllbapvE4w2pVfEUCUWCBWnn/H1xoRr3TB4MeIn+oT40nn X/QvqW2uYTCvTKWriSu/19CYBwKot18tPs5kuBwwvdOU/o8bkCOdDZFVMG1fo/UsTRgC m0fA== X-Forwarded-Encrypted: i=1; AJvYcCWtOrCAt7pMKnijwhGnAJzbkpIMMOMI0qTJUPRRQJ0hVpzPFooX7Nfm2AT1V0rQWyPuygNgsADt7Ysq6vo=@vger.kernel.org X-Gm-Message-State: AOJu0YynOgrYAdGi5Lj5M3PRHSRfL3byGtRJPyMl5ImWte+f0QTxOpiZ QwBoFveFuN3oSWL1sGJivWG8346xng3keoKvBOrLBi5dHdn1PbmevTbCKHmOK/43Fyg= X-Gm-Gg: AY/fxX4W1nv86Avu68x3rn7FRyJ8LYc1ptq+osjt4a0xl3Dc88+Y5zAae94OGdfmVHT NmMX5mzkvGYVoCPs0FWH9NQQa9Lx1I1zCwRqlvIp08dosDGmPnbkPk0NBgy2ii0FzVoc2wqkluN 4GaNZKHsPx8Ftrki+Gq7NP7cUJLiVHG2XpkKG/6Bcuvt3D6XH84WBwjCA/H1rqQ2vJowLv48Sye ek3x2+cuD2NbL++AD/3K0EOmjROciFT031iudx5SpJacmDYuN5jjnxI8zhTkFHCTeTI+9mKeEKL xUQqZP9gFt4E6kCglrnp9arpVGfni+6Ft5G+QkeW3E+wIDNd7EmxL8SqCLGZoeRol5TH/r5ImUV guUMV4TYoRCve584VHci77vkXyzJlcrXA9ennjyG2Y8fkcYfsgV0qimwNp4w6WRaNToanBDw1LA qnYVm9aRZOgUzTVZlQB7FfL/A7Ymfy95vNEaiLXf7S8umxyuOCXQgxVKpxdU6aVW9KrZSJcup// +7lAA== X-Google-Smtp-Source: AGHT+IG4JeAa46uy6SUlbVukzudlbhIwHtOjEK6mV3glK8apPLjD/3Y6qi1SnMN2NuRbMMnv98db7A== X-Received: by 2002:a17:907:94d2:b0:b84:201e:cd3f with SMTP id a640c23a62f3a-b84201ecd98mr40078366b.11.1767603707608; Mon, 05 Jan 2026 01:01:47 -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 a640c23a62f3a-b8037f0ecb9sm5384010466b.56.2026.01.05.01.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 01:01:46 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 05 Jan 2026 09:01:49 +0000 Subject: [PATCH v6 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: <20260105-s2mpg1x-regulators-v6-13-80f4b6d1bf9d@linaro.org> References: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> In-Reply-To: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Linus Walleij 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.351.gbe84eed79e-goog