summaryrefslogtreecommitdiff
path: root/drivers/grove/lcd_rgb.c
diff options
context:
space:
mode:
authorDaniel Leung <daniel.leung@intel.com>2015-12-15 16:13:47 -0800
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:06 -0500
commitb90cb66afd8b4c4c4d52aea35ad167787c4be633 (patch)
treee9fea43171f8e340a67e7c59b659db9f60d31753 /drivers/grove/lcd_rgb.c
parentd9e930bc093e46e24fee018d066c759d158fab87 (diff)
grove/lcd: add an option to specify I2C master
Add an option to specify to which I2C master the Grove LCD is connected, instead of already using the i2c_dw driver port #0. Change-Id: I4e61ef8e31c75ae912e2d16f8939369c0b8bbc2c Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Diffstat (limited to 'drivers/grove/lcd_rgb.c')
-rw-r--r--drivers/grove/lcd_rgb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/grove/lcd_rgb.c b/drivers/grove/lcd_rgb.c
index cd431f048..04aedbabf 100644
--- a/drivers/grove/lcd_rgb.c
+++ b/drivers/grove/lcd_rgb.c
@@ -281,7 +281,8 @@ int glcd_initialize(struct device *port)
* First set up the device driver...
* we need a pointer to the I2C device we are bound to
*/
- dev->i2c = device_get_binding(CONFIG_I2C_DW_0_NAME);
+ dev->i2c = device_get_binding(
+ CONFIG_GROVE_LCD_RGB_I2C_MASTER_DEV_NAME);
if (!dev->i2c) {
return DEV_NOT_CONFIG;