ast2400: replace aspeed_smc_is_implemented()
commit97c2ed5dbdda978e29618f356f11caa99a7df601
authorCédric Le Goater <clg@kaod.org>
Thu, 14 Jul 2016 15:51:38 +0000 (14 16:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Jul 2016 15:51:38 +0000 (14 16:51 +0100)
treeea62588d7188031c0346e66087f980dda1ef71f3
parent2ddfa2817b7f2be4f7ef0fd4806e06aaced9e6ac
ast2400: replace aspeed_smc_is_implemented()

aspeed_smc_is_implemented() filters invalid registers in a peculiar
way. Let's remove it and open code the if conditions. It serves the
same purpose, the aesthetic is better, and new registers can easily be
added.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 1467994016-11678-3-git-send-email-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/aspeed_smc.c