Revert "samples: i2c_lsm9ds0: change hard-coded device name"
This reverts commit 81f85f4e4b
.
Need a better solution for this, the patch itself does not solve any problem
and fails on many platforms that do not have I2C enabled.
Change-Id: I060e3d7a9992db8a1ece6da5e8d3a521f4052395
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
33746d4b7c
commit
87a422896c
|
@ -73,7 +73,7 @@ void main(void)
|
|||
cfg.bits.speed = I2C_SPEED_STANDARD;
|
||||
cfg.bits.is_master_device = 1;
|
||||
|
||||
dev = device_get_binding(CONFIG_I2C_0_NAME);
|
||||
dev = device_get_binding("I2C_0");
|
||||
if (!dev) {
|
||||
printk("I2C0: Device not found.\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue