cleanup: include/: move spi.h to drivers/spi.h

move spi.h to drivers/spi.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-25 15:54:01 -04:00
commit bd70f6f1ed
54 changed files with 481 additions and 466 deletions

View file

@ -15,7 +15,7 @@
#include <drivers/sensor.h>
#if defined(DT_ST_LIS2DW12_BUS_SPI)
#include <spi.h>
#include <drivers/spi.h>
#elif defined(DT_ST_LIS2DW12_BUS_I2C)
#include <drivers/i2c.h>
#endif