spi.h: Eliminate a warning

This commit is contained in:
Gregory Nutt 2017-04-29 08:35:46 -06:00
parent f175af3cd3
commit 90db11494e

View File

@ -458,12 +458,13 @@ enum spi_devtype_e
/* This builds a SPI devid from its type and index */
#define SPIDEV_ID(type,index) (((uint32_t)(type)&0xFFFF)<<16 | (uint32_t)(index)&0xFFFF)
#define SPIDEV_ID(type,index) ((((uint32_t)(type) & 0xffff) << 16) | \
(uint32_t)(index) & 0xffff)
/* This retrieves the fields from a SPI devid */
#define SPIDEVID_TYPE (devid) (((uint32_t)(devid)>>16)&0xFFFF)
#define SPIDEVID_INDEX(devid) ( (uint32_t)(devid) &0xFFFF)
#define SPIDEVID_TYPE (devid) (((uint32_t)(devid) >> 16) & 0xffff)
#define SPIDEVID_INDEX(devid) ((uint32_t)(devid) & 0xffff)
/* These are replacement definitions for the currently used SPI device indexes.
* They are meant as a compatibility measure. it is expected that new drivers