]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sprd: Simplify the transfer function
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 20 Mar 2018 02:42:13 +0000 (10:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 21 Mar 2018 01:49:26 +0000 (09:49 +0800)
commita61aa683655f3182aca6e38404ae9aac03e771ae
treec75e1cbbd91ebdf93a347472b95a86662e4cd05a
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
spi: sprd: Simplify the transfer function

We can move the hardware spinlock protection into the ADI read/write
functions to simplify the sprd_adi_transfer_one() function. Moreover
this optimization can also help to access PMIC without considering
the hardware spinlock using sprd_adi_read/write() functions.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd-adi.c