spmi: pmic-arb: Don't byte swap when reading/writing FIFO
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 28 Aug 2015 19:21:42 +0000 (12:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 12:03:15 +0000 (13:03 +0100)
commitd5144796db928b1f7a074c4be3575c50951c9569
treeb593bfc90fe634bef8829122496d873bdf9941f9
parent48e3d668b7902cca3c61e9e2098e7f76b5646c28
spmi: pmic-arb: Don't byte swap when reading/writing FIFO

We don't want to swap bytes that we're reading and writing to the
FIFOs when we're running on a big-endian CPU. Doing so causes
problems like where the qcom-spmi-iadc driver can't detect the
type of device because the bytes are all mixed up. Use the raw IO
accessors for these API instead, and collapse pmic_arb_base_read()
into the byte reading API so that we aren't tempted to read non-FIFO
data like commands with that function.

Cc: Andy Gross <agross@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c