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:
Kumar Gala 2020-04-16 12:23:17 -05:00 committed by Kumar Gala
commit 762b521931
13 changed files with 26 additions and 0 deletions

View file

@ -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>