• hartleys's avatar
    spi: move bitbang txrx utility functions to private header · 41c4221c
    hartleys authored
    A number of files in drivers/spi fail checkincludes.pl due to the double
    include of <linux/spi/spi_bitbang.h>.
    
    The first include is needed to get the struct spi_bitbang definition and
    the spi_bitbang_* function prototypes.
    
    The second include happens after defining EXPAND_BITBANG_TXRX to get the
    inlined bitbang_txrx_* utility functions.
    
    The <linux/spi/spi_bitbang.h> header is also included by a number of other
    spi drivers, as well as some arch/ code, in order to use struct spi_bitbang
    and the associated functions.
    
    To fix the double include, and remove any potential confusion about it, move
    the inlined bitbang_txrx_* functions to a new private header in drivers/spi
    and also remove the need to define EXPAND_BITBANG_TXRX.
    Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    41c4221c
spi_butterfly.c 8.47 KB