]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb31fbbc86698bd9469990eb5fb1f9bc2f57ac4c
treea74ca9c5a56acde05fcf099ad976abd869ab70c7
parenta5cb26d6f5f20dce1bd62d17d55b8024c13c9c00
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