ec/dell/mec5035: Replace defines with enums
commit7c7e756185e596ed052146903c25805fa26f297f
authorNicholas Chin <nic.c3.14@gmail.com>
Tue, 28 May 2024 23:23:21 +0000 (28 17:23 -0600)
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>
Mon, 26 Aug 2024 22:32:30 +0000 (26 22:32 +0000)
tree36495ff41b5b13d3dd12474d717d6a6d2653c278
parentb8a1115f516874156814ffb6f8c2ccf86bce5ae2
ec/dell/mec5035: Replace defines with enums

Instead of using defines for command IDs and argument values, use enums
to provide more type safety. This also has the effect of moving the
command IDs to a more central location instead of defines spread out
throughout the header.

Change-Id: I788531e8b70e79541213853f177326d217235ef2
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82998
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
src/ec/dell/mec5035/mec5035.c
src/ec/dell/mec5035/mec5035.h