OSDN Git Service

spmi: pmic-arb: correct support for up to 512 APIDs
authorDavid Collins <collinsd@codeaurora.org>
Thu, 21 Jul 2016 23:58:29 +0000 (16:58 -0700)
committerDavid Collins <collinsd@codeaurora.org>
Thu, 28 Jul 2016 00:59:47 +0000 (17:59 -0700)
commite983aa07b995363bf5038a3bc3254d253eccbf80
treefe265e8e694bd012cce4dd1eb967298f9513d1ca
parent7ebe256eaa819f5f9e168d922b12452d28a736a3
spmi: pmic-arb: correct support for up to 512 APIDs

Version 3 of the SPMI PMIC arbiter supports up to 512 APIDs.
However, the APID value is currently stored in u8 variables
throughout the spmi-pmic-arb driver.  Change the type of these
variables to be u16 so that APIDs 256-511 are not truncated.
Also update the out_hwirq value packing in order to support
more than 8 bits for APIDs.

Change-Id: If2408bc4678b2e0f7e2366329be005cd652661cf
CRs-Fixed: 1045396
Signed-off-by: David Collins <collinsd@codeaurora.org>
drivers/spmi/spmi-pmic-arb.c