spi: Add static keyword to spi_slave_select()

Adding the 'static' keyword to the inline routine spi_save_select() fixes
the build error when CONFIG_COMPILER_OPT="-O0 -g"

Change-Id: I5234d3d6690ccda3dbd419e13f06c2651d125167
Work-by: Mike Hirst <michael.hirst@windriver.com>
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
mhirst 2015-10-19 12:36:13 -04:00 committed by Anas Nashif
parent b746ec13bc
commit ff37de7de0

View file

@ -127,7 +127,7 @@ static inline int spi_configure(struct device *dev,
*
* @return DEV_OK if successful, another DEV_* code otherwise.
*/
inline int spi_slave_select(struct device *dev, uint32_t slave)
static inline int spi_slave_select(struct device *dev, uint32_t slave)
{
struct spi_driver_api *api = (struct spi_driver_api *)dev->driver_api;