sensors: bma280: move bma280 to own directory under drivers/sensor/
Change-Id: I1c73d36a51ea88fbda3707c7d6630d54f8fd3545 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
db04446964
commit
c31bbc32d8
7 changed files with 7 additions and 6 deletions
|
@ -52,7 +52,7 @@ config SENSOR_INIT_PRIORITY
|
||||||
|
|
||||||
source "drivers/sensor/ak8975/Kconfig"
|
source "drivers/sensor/ak8975/Kconfig"
|
||||||
|
|
||||||
source "drivers/sensor/Kconfig.bma280"
|
source "drivers/sensor/bma280/Kconfig"
|
||||||
|
|
||||||
source "drivers/sensor/Kconfig.bmc150_magn"
|
source "drivers/sensor/Kconfig.bmc150_magn"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
ccflags-y +=-I$(srctree)/drivers
|
ccflags-y +=-I$(srctree)/drivers
|
||||||
|
|
||||||
obj-$(CONFIG_AK8975) += ak8975/
|
obj-$(CONFIG_AK8975) += ak8975/
|
||||||
obj-$(CONFIG_BMA280) += sensor_bma280.o
|
obj-$(CONFIG_BMA280) += bma280/
|
||||||
obj-$(CONFIG_BMA280_TRIGGER) += sensor_bma280_trigger.o
|
|
||||||
obj-$(CONFIG_BMC150_MAGN) += sensor_bmc150_magn.o
|
obj-$(CONFIG_BMC150_MAGN) += sensor_bmc150_magn.o
|
||||||
obj-$(CONFIG_BMC150_MAGN_TRIGGER_DRDY) += sensor_bmc150_magn_trigger.o
|
obj-$(CONFIG_BMC150_MAGN_TRIGGER_DRDY) += sensor_bmc150_magn_trigger.o
|
||||||
obj-$(CONFIG_BME280) += sensor_bme280.o
|
obj-$(CONFIG_BME280) += sensor_bme280.o
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Kconfig.bma280 - BMA280 Three Axis Accelerometer configuration options
|
# Kconfig - BMA280 Three Axis Accelerometer configuration options
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 Intel Corporation
|
# Copyright (c) 2016 Intel Corporation
|
2
drivers/sensor/bma280/Makefile
Normal file
2
drivers/sensor/bma280/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
obj-$(CONFIG_BMA280) += bma280.o
|
||||||
|
obj-$(CONFIG_BMA280_TRIGGER) += bma280_trigger.o
|
|
@ -19,7 +19,7 @@
|
||||||
#include <sensor.h>
|
#include <sensor.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
|
|
||||||
#include "sensor_bma280.h"
|
#include "bma280.h"
|
||||||
|
|
||||||
static int bma280_sample_fetch(struct device *dev, enum sensor_channel chan)
|
static int bma280_sample_fetch(struct device *dev, enum sensor_channel chan)
|
||||||
{
|
{
|
|
@ -20,7 +20,7 @@
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <sensor.h>
|
#include <sensor.h>
|
||||||
|
|
||||||
#include "sensor_bma280.h"
|
#include "bma280.h"
|
||||||
|
|
||||||
int bma280_attr_set(struct device *dev,
|
int bma280_attr_set(struct device *dev,
|
||||||
enum sensor_channel chan,
|
enum sensor_channel chan,
|
Loading…
Add table
Add a link
Reference in a new issue