drivers: sensor: Fix missing DT_DRV_COMPAT
Some sensor drivers modify there struct's based on DT defines. In those cases we need to make sure that DT_DRV_COMPAT is set on all the source files associated with that driver. This updates any such files. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c8e3b1f68b
commit
762b521931
13 changed files with 26 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT adi_adxl362
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <sys/util.h>
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT adi_adxl372
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/gpio.h>
|
||||
#include <sys/util.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/iis2dlpc.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_iis2dlpc
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/iis2mdc.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_iis2mdc
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/iis3dhhc.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_iis3dhhc
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/ism330dhcx.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_ism330dhcx
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <sys/byteorder.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/ism330dhcx.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_ism330dhcx
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/lis2dw12.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_lis2dw12
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/lis2mdl.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_lis2mdl
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/lps22hh.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_lps22hh
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/lsm6dso.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_lsm6dso
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/i2c.h>
|
||||
#include <sys/byteorder.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/lsm6dso.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_lsm6dso
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
* https://www.st.com/resource/en/datasheet/stts751.pdf
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT st_stts751
|
||||
|
||||
#include <kernel.h>
|
||||
#include <drivers/sensor.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue