mfd: rk808: Reduce shutdown duplication

Rather than having 3 almost-identical functions plus the machinery to
keep track of them, it's far simpler to just dynamically select the
appropriate register field per variant.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Robin Murphy 2020-01-12 01:55:03 +00:00 • committed by Lee Jones
commit 7a52cbccee
2 changed files with 20 additions and 42 deletions