]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: arm: scmi_pm_domain: remove code clutter
authorLukas Bulwahn <lukas.bulwahn@redhat.com>
Fri, 6 Jun 2025 09:08:02 +0000 (11:08 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 18 Jun 2025 12:44:43 +0000 (14:44 +0200)
commit152d59f1ae404fed3e5f26a2d0505a2b9e168cba
tree6040466e454cab0b66731ae88d9d3eec5accb26f
parent7920de375d173809cbeb460a643c9ae2ff32909e
pmdomain: arm: scmi_pm_domain: remove code clutter

There is no need to introduce the boolean power_on to select the constant
value for state. Simply pass the value for state as argument. Just remove
this code clutter.

No functional change.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20250606090802.597504-1-lukas.bulwahn@redhat.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/arm/scmi_pm_domain.c