summaryrefslogtreecommitdiff
path: root/drivers/firmware/arm_scmi/power.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2020-07-10 16:39:19 +0300
committerSudeep Holla <sudeep.holla@arm.com>2020-07-13 11:40:21 +0300
commit72a5eb9d9c319c99c11cfd9cfb486380dd136840 (patch)
tree0cef497bf77845196d7332a860e45b937d4ec6c0 /drivers/firmware/arm_scmi/power.c
parent33ee97f823cc5b3d03c9910c1b8dbe193a21056b (diff)
downloadlinux-72a5eb9d9c319c99c11cfd9cfb486380dd136840.tar.xz
firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header
Event reports are used to convey information describing events to the registered user-callbacks: they are necessarily derived from the underlying raw SCMI events' messages but they are not meant to expose or directly mirror any of those messages data layout, which belong to the protocol layer. Using fixed size types for report fields, mirroring messages structure, is at odd with this: get rid of them using more generic, equivalent, typing. Substitute scmi_event_header fixed size fields with generic types too and shuffle around fields definitions to minimize implicit padding while adapting involved functions. Link: https://lore.kernel.org/r/20200710133919.39792-3-cristian.marussi@arm.com Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/power.c')
-rw-r--r--drivers/firmware/arm_scmi/power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/power.c b/drivers/firmware/arm_scmi/power.c
index 4f6757980739..46f213644c49 100644
--- a/drivers/firmware/arm_scmi/power.c
+++ b/drivers/firmware/arm_scmi/power.c
@@ -227,7 +227,7 @@ static int scmi_power_set_notify_enabled(const struct scmi_handle *handle,
}
static void *scmi_power_fill_custom_report(const struct scmi_handle *handle,
- u8 evt_id, u64 timestamp,
+ u8 evt_id, ktime_t timestamp,
const void *payld, size_t payld_sz,
void *report, u32 *src_id)
{