aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/spi-slave-system-control.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-03spi: slave: Fix missing break in switchGustavo A. R. Silva1-0/+1
Apparently, this code does not actually fall through to the next case because the machine restarts before it has a chance. However, for the sake of maintenance and readability, we better add the missing break statement. Addresses-Coverity-ID: 1437892 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2017-05-26spi: slave: Add SPI slave handler controlling system stateGeert Uytterhoeven1-0/+154
Add an example SPI slave handler to allow remote control of system reboot, power off, halt, and suspend. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Mark Brown <[email protected]>