diff mbox series

[v6,17/29] ipmi: endian conversion

Message ID 20191106121047.14389-18-npiggin@gmail.com
State Changes Requested
Headers show
Series little endian skiboot | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (d75e82dbfbb9443efeb3f9a5921ac23605aab469)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Nicholas Piggin Nov. 6, 2019, 12:10 p.m. UTC
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 hw/ipmi/ipmi-sel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 794aa3801..a774fb401 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -192,7 +192,7 @@  static void ipmi_init_esel_record(void)
 {
 	memset(&sel_record, 0, sizeof(struct sel_record));
 	sel_record.record_type = SEL_REC_TYPE_AMI_ESEL;
-	sel_record.generator_id = SEL_GENERATOR_ID_AMI;
+	sel_record.generator_id = cpu_to_le16(SEL_GENERATOR_ID_AMI);
 	sel_record.evm_ver = SEL_EVM_VER_2;
 	sel_record.sensor_type	= SENSOR_TYPE_SYS_EVENT;
 	sel_record.sensor_number =