I am not sure why spi.h is still generating warnings. A few more parentheses and that seems to fix the problem

This commit is contained in:
Gregory Nutt 2017-04-29 09:17:41 -06:00
parent 11e15edfdf
commit bfc1b0a557

View File

@ -437,25 +437,25 @@
* will use SPIDEV_ID directly.
*/
#define SPIDEV_NONE SPIDEV_ID(SPIDEVTYPE_NONE , 0)
#define SPIDEV_MMCSD SPIDEV_ID(SPIDEVTYPE_MMCSD , 0)
#define SPIDEV_FLASH SPIDEV_ID(SPIDEVTYPE_FLASH , 0)
#define SPIDEV_ETHERNET SPIDEV_ID(SPIDEVTYPE_ETHERNET , 0)
#define SPIDEV_DISPLAY SPIDEV_ID(SPIDEVTYPE_DISPLAY , 0)
#define SPIDEV_CAMERA SPIDEV_ID(SPIDEVTYPE_CAMERA , 0)
#define SPIDEV_WIRELESS SPIDEV_ID(SPIDEVTYPE_WIRELESS , 0)
#define SPIDEV_TOUCHSCREEN SPIDEV_ID(SPIDEVTYPE_TOUCHSCREEN , 0)
#define SPIDEV_EXPANDER SPIDEV_ID(SPIDEVTYPE_EXPANDER , 0)
#define SPIDEV_MUX SPIDEV_ID(SPIDEVTYPE_MUX , 0)
#define SPIDEV_AUDIO_DATA SPIDEV_ID(SPIDEVTYPE_AUDIO_DATA , 0)
#define SPIDEV_AUDIO_CTRL SPIDEV_ID(SPIDEVTYPE_AUDIO_CTRL , 0)
#define SPIDEV_EEPROM SPIDEV_ID(SPIDEVTYPE_EEPROM , 0)
#define SPIDEV_NONE SPIDEV_ID(SPIDEVTYPE_NONE, 0)
#define SPIDEV_MMCSD SPIDEV_ID(SPIDEVTYPE_MMCSD, 0)
#define SPIDEV_FLASH SPIDEV_ID(SPIDEVTYPE_FLASH, 0)
#define SPIDEV_ETHERNET SPIDEV_ID(SPIDEVTYPE_ETHERNET, 0)
#define SPIDEV_DISPLAY SPIDEV_ID(SPIDEVTYPE_DISPLAY, 0)
#define SPIDEV_CAMERA SPIDEV_ID(SPIDEVTYPE_CAMERA, 0)
#define SPIDEV_WIRELESS SPIDEV_ID(SPIDEVTYPE_WIRELESS, 0)
#define SPIDEV_TOUCHSCREEN SPIDEV_ID(SPIDEVTYPE_TOUCHSCREEN, 0)
#define SPIDEV_EXPANDER SPIDEV_ID(SPIDEVTYPE_EXPANDER, 0)
#define SPIDEV_MUX SPIDEV_ID(SPIDEVTYPE_MUX, 0)
#define SPIDEV_AUDIO_DATA SPIDEV_ID(SPIDEVTYPE_AUDIO_DATA, 0)
#define SPIDEV_AUDIO_CTRL SPIDEV_ID(SPIDEVTYPE_AUDIO_CTRL, 0)
#define SPIDEV_EEPROM SPIDEV_ID(SPIDEVTYPE_EEPROM, 0)
#define SPIDEV_ACCELEROMETER SPIDEV_ID(SPIDEVTYPE_ACCELEROMETER, 0)
#define SPIDEV_BAROMETER SPIDEV_ID(SPIDEVTYPE_BAROMETER , 0)
#define SPIDEV_TEMPERATURE SPIDEV_ID(SPIDEVTYPE_TEMPERATURE , 0)
#define SPIDEV_IEEE802154 SPIDEV_ID(SPIDEVTYPE_IEEE802154 , 0)
#define SPIDEV_CONTACTLESS SPIDEV_ID(SPIDEVTYPE_CONTACTLESS , 0)
#define SPIDEV_USER SPIDEV_ID(SPIDEVTYPE_USER , 0)
#define SPIDEV_BAROMETER SPIDEV_ID(SPIDEVTYPE_BAROMETER, 0)
#define SPIDEV_TEMPERATURE SPIDEV_ID(SPIDEVTYPE_TEMPERATURE, 0)
#define SPIDEV_IEEE802154 SPIDEV_ID(SPIDEVTYPE_IEEE802154, 0)
#define SPIDEV_CONTACTLESS SPIDEV_ID(SPIDEVTYPE_CONTACTLESS, 0)
#define SPIDEV_USER SPIDEV_ID(SPIDEVTYPE_USER, 0)
/****************************************************************************
* Public Types