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:
parent
b746ec13bc
commit
ff37de7de0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue