mfd: rk808: Reduce shutdown duplication
authorRobin Murphy <robin.murphy@arm.com>
Sun, 12 Jan 2020 01:55:03 +0000 (01:55 +0000)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:27 +0000 (07:35 +0100)
commit7a52cbccee8df0edfee30b81fdbb7d4f9d27ffd5
tree2c3e2c763817d77b0900074ad479bc57c96ceae2
parent90df3a8230ef8b02370bb2eb0354fba57ecb2b9d
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>
drivers/mfd/rk808.c
include/linux/mfd/rk808.h