X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fspi%2Fspi-dw.h;h=35589a270468d6f2dcd7f57ef0c4073cd6fe5721;hb=c70efb85153162295dc80099e95dab93d486a3ed;hp=b75ed327d5a29832ad3461cb28da1089ade94cba;hpb=605e9710fb5fef0dd2bb49d7b75e46601df62112;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index b75ed327d5a2..35589a270468 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h @@ -225,6 +225,12 @@ static inline void spi_reset_chip(struct dw_spi *dws) spi_enable_chip(dws, 1); } +static inline void spi_shutdown_chip(struct dw_spi *dws) +{ + spi_enable_chip(dws, 0); + spi_set_clk(dws, 0); +} + /* * Each SPI slave device to work with dw_api controller should * has such a structure claiming its working mode (poll or PIO/DMA),