mfd: qcom-spmi-pmic: Don't access non-existing registers
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Wed, 18 Nov 2015 00:06:44 +0000 (16:06 -0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 06:23:32 +0000 (06:23 +0000)
commit742dcd115cb523f4b518bfcda870e10a027a8024
treee3d03e6e252decb063fefa0d2639b28369dda623
parenta5656a708050bd3be5c3a3bc45297db21e88cecd
mfd: qcom-spmi-pmic: Don't access non-existing registers

Revision ID registers are available only on devices with
Slave IDs that are even, so don't make access to unavailable
registers.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
[sboyd@codeaurora.org: Consider all slave ids that are even]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/qcom-spmi-pmic.c