i2c_posix: fix use of wrong device path

previously, get_devname() was used as the I2C device path, but on NuttX,
get_devname() is the device file which the driver creates. This patch
changes it, so the sematics are the same as on NuttX: both now use _bus
to decide to which I2C bus device to talk to.

I did not see any other use-cases than the led on ocpoc.
This commit is contained in:
Beat Küng
2017-07-13 16:53:28 +02:00
parent fc4affbb5f
commit bf11362dae
4 changed files with 8 additions and 17 deletions
-1
View File
@@ -56,4 +56,3 @@
#include "../common/board_common.h"
#define BOARD_MAX_LEDS 1 // Number external of LED's this board has
#define BOARD_RGBLED0_PATH "/dev/i2c-1"