firmware: arm_scmi: Add support for type handling in common functions
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 3 Aug 2021 13:10:10 +0000 (14:10 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Aug 2021 09:23:21 +0000 (10:23 +0100)
commit63b282f172717609136b51571bcc1f74d92d2be6
tree4c353a830b38929091859f4ea6060b3ce49de1a9
parentbdb8742dc6f7c599c3d61959234fe4c23638727b
firmware: arm_scmi: Add support for type handling in common functions

Add SCMI type handling to pack/unpack_scmi_header common helper functions.
Initialize hdr.type properly when initializing a command xfer.

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