]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Introduce int_stop_and_reset() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 12:41:27 +0000 (15:41 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 11 May 2021 08:35:04 +0000 (09:35 +0100)
commite86cccd3877c6fb855d9aef95e507b1a5d0bc1ab
tree13f733805c72f966aa5630a5c6d5231f378a3266
parenta1ca2a2f0005aedf8fff8509e73b0d021eafb1a0
spi: pxa2xx: Introduce int_stop_and_reset() helper

Currently we have three times the same few lines repeated in the code.
Deduplicate them by newly introduced int_stop_and_reset() helper.

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