aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mfd-core.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2019-10-21 08:49:49 +0100
committerLee Jones <lee.jones@linaro.org>2019-11-11 08:45:03 +0000
commit2d4ba9173aecc7e69ae6b842564437b9209c7a71 (patch)
treeeee6d76577f2dfe89c0bab42abca3820a4b1cf48 /drivers/mfd/mfd-core.c
parentmfd: cs5535-mfd: Remove mfd_cell->id hack (diff)
downloadlinux-dev-2d4ba9173aecc7e69ae6b842564437b9209c7a71.tar.xz
linux-dev-2d4ba9173aecc7e69ae6b842564437b9209c7a71.zip
mfd: cs5535-mfd: Request shared IO regions centrally
Prior to this patch, IO regions were requested via an MFD subsytem-level .enable() call-back and similarly released by a .disable() call-back. Double requests/releases were avoided by a centrally handled usage count mechanism. This complexity can all be avoided by handling IO regions only once during .probe() and .remove() of the parent device. Since this is the only legitimate user of the aforementioned usage count mechanism, this patch will allow it to be removed from MFD core in subsequent steps. Suggested-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'drivers/mfd/mfd-core.c')
0 files changed, 0 insertions, 0 deletions