]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
drivers: spmi: msm: fix return values for errors in parameters
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 13 Mar 2017 15:04:56 +0000 (16:04 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 14 Mar 2017 16:39:53 +0000 (17:39 +0100)
commit30c4b1819e1a0fb741c5e0bc658ea38106fbfc8a
tree92e1bfb7b0b559f9b3a37fb47da95c7068f60d53
parent05a06bc85efddde9c6d114ff120c6ecfd9dee2a9
drivers: spmi: msm: fix return values for errors in parameters

If an out-of-range usid or pid is passed to the
msm_spmi_{read|write}() functions, those currently return -EIO.
Since no actual I/O has taken place at this point, the error code is
misleading. Return the more appropriate -EINVAL in this case.
drivers/spmi/spmi-msm.c