diff options
author | Kuo-Lang Tseng <kuo-lang.tseng@intel.com> | 2017-02-10 16:33:01 -0800 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2017-02-11 01:28:09 +0000 |
commit | 61452f0e38924793eecf8f8470e47cf0a3ecc96e (patch) | |
tree | 59b5f0d1529e8cf341c83aa920db419aceccbfbf /samples | |
parent | c99c686b2cbe9bbe87c44e131fae122c9478b951 (diff) |
samples: bmi160: use correct device name
Binding of the device failed due to incorrect device name. Update
to use the correct device name.
Jira: ZEP-1704
Change-Id: I6ca23a439357592c9c974ca746bccc35e77d996d
Signed-off-by: Kuo-Lang Tseng <kuo-lang.tseng@intel.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/sensor/bmi160/src/bmi160.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/sensor/bmi160/src/bmi160.c b/samples/sensor/bmi160/src/bmi160.c index e357ef3b2..437a5e92c 100644 --- a/samples/sensor/bmi160/src/bmi160.c +++ b/samples/sensor/bmi160/src/bmi160.c @@ -417,7 +417,7 @@ void main(void) #endif printk("IMU: Binding...\n"); - bmi160 = device_get_binding("bmi160"); + bmi160 = device_get_binding(CONFIG_BMI160_NAME); if (!bmi160) { printk("Gyro: Device not found.\n"); return; |