firmware: arm_scmi: Refactor the internal powercap get/set helpers
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 31 May 2023 15:20:37 +0000 (16:20 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 6 Jun 2023 13:01:55 +0000 (14:01 +0100)
commit4e1a53b4030e0a28e17548f8f380fa38207ec300
treebb08cb879cb1390d7698a628b7417f251c44ffdd
parent5f2ea10a808aef0086ad46240fab0a3e7ae90e95
firmware: arm_scmi: Refactor the internal powercap get/set helpers

Refactor the SCMI powercap internal get/set helpers in preparation to
adding the powercap protocol enable/disable support.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20230531152039.2363181-2-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/powercap.c