]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fabbac9adffbd54ea4fba74ad080ca4c062cdba
tree2c3e2c763817d77b0900074ad479bc57c96ceae2
parentc7e69ce80465a3823c6d252473f534d9ccc2d12e
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