astlpc: Remove redundant KCS register name enumeration
Seems we grew two separate enums for the registers at some point.
Change-Id: I87eca646a93ca65c783ea6276cbc33b577dcd721
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/tests/test_astlpc.c b/tests/test_astlpc.c
index faea13c..11e5699 100644
--- a/tests/test_astlpc.c
+++ b/tests/test_astlpc.c
@@ -199,7 +199,7 @@
/* BMC initialisation */
endpoint_init(&ctx->bmc, 8, MCTP_BINDING_ASTLPC_MODE_BMC, &ctx->kcs,
ctx->lpc_mem);
- assert(ctx->kcs[KCS_REG_STATUS] & KCS_STATUS_BMC_READY);
+ assert(ctx->kcs[MCTP_ASTLPC_KCS_REG_STATUS] & KCS_STATUS_BMC_READY);
/* Host initialisation */
endpoint_init(&ctx->host, 9, MCTP_BINDING_ASTLPC_MODE_HOST, &ctx->kcs,
@@ -207,8 +207,9 @@
/* BMC processes host channel init request, alerts host */
mctp_astlpc_poll(ctx->bmc.astlpc);
- assert(ctx->kcs[KCS_REG_STATUS] & KCS_STATUS_CHANNEL_ACTIVE);
- assert(ctx->kcs[KCS_REG_DATA] == 0xff);
+ assert(ctx->kcs[MCTP_ASTLPC_KCS_REG_STATUS] &
+ KCS_STATUS_CHANNEL_ACTIVE);
+ assert(ctx->kcs[MCTP_ASTLPC_KCS_REG_DATA] == 0xff);
/* Host dequeues channel init result */
mctp_astlpc_poll(ctx->host.astlpc);