OSDN Git Service

spi: pxa2xx: Extract pxa2xx_spi_update() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 12:41:30 +0000 (15:41 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 11 May 2021 08:35:07 +0000 (09:35 +0100)
commit1bed378c6b9116c51ae59b970cf3d9b4e9e62ced
treea74ca9c5a56acde05fcf099ad976abd869ab70c7
parent0c8ccd8b267fc735e4621774ce62728f27d42863
spi: pxa2xx: Extract pxa2xx_spi_update() helper

There are few places that repeat the logic of "update if changed".
Extract pxa2xx_spi_update() helper to deduplicate that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210510124134.24638-11-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c