]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/spmi/spmi-pmic-arb.c
spmi: pmic-arb: Support more than 128 peripherals
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 18 Nov 2015 00:13:55 +0000 (16:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 22:57:30 +0000 (14:57 -0800)
commit987a9f128b8ad8e7019229300e8d91d37ca55933
treeba52ec95ff6695615342359fcfa50c26085257e6
parent7b46a105dbb7b67ea1f2f63a0b3ec29ab64e1bd3
spmi: pmic-arb: Support more than 128 peripherals

Add support for more than 128 peripherals by taking a lazy
caching approach to the mapping tables. Instead of reading and
caching the tables at boot given some fixed size, read them and
cache them on an as needed basis. We still assume a max size of
512 peripherals, trading off some space for simplicity.

Based on a patch by Gilad Avidov <gavidov@codeaurora.org> and
Sagar Dharia <sdharia@codeaurora.org>.

Cc: Gilad Avidov <gavidov@codeaurora.org>
Cc: Sagar Dharia <sdharia@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c