From 61452f0e38924793eecf8f8470e47cf0a3ecc96e Mon Sep 17 00:00:00 2001 From: Kuo-Lang Tseng Date: Fri, 10 Feb 2017 16:33:01 -0800 Subject: 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 --- samples/sensor/bmi160/src/bmi160.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples') 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; -- cgit v1.2.3