OSDN Git Service

staging: wilc1000: refactor SPI read/write commands handling API's
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 3 Feb 2020 10:39:43 +0000 (10:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 00:22:57 +0000 (16:22 -0800)
commit034280e33ea0bb00964adc30dddaf9a48ce75a8c
tree60166bdb3dd7654ff94c0620df248f0c91461aca
parent8e2e79ff61f15f1af6f08aa754bacaf0d504265c
staging: wilc1000: refactor SPI read/write commands handling API's

Refactor SPI commands handling by making use of 'struct' for data
exchange and extraction of information flow between host and firmware.
The SPI read/write commands are now handled in separate function instead
of using a single function to process all types of command.
The use of 'struct' helped to make the code self explanatory. These
points were discussed and suggested during code review [1].

1. https://www.spinics.net/lists/linux-wireless/msg191489.html

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200203160848.4052-1-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/spi.c