spi: bitbang: Use typedef for txrx_*() callbacks
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 May 2024 19:40:20 +0000 (22:40 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:33:22 +0000 (01:33 +0100)
commitf261172d39f358dcecce13c310690d3937e0cca6
treeb994b49c9992cba69b3d1d538da42b651fce434f
parentf44b3730b038363475a3f84bee2038d8b6448ed8
spi: bitbang: Use typedef for txrx_*() callbacks

With a typedef for the txrx_*() callbacks the code looks neater.
Note that typedef for a function is okay to have.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240517194104.747328-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bitbang.c
include/linux/spi/spi_bitbang.h