From 8549e8a17193ae5fb35a2d7f10b6f609f217a9a2 Mon Sep 17 00:00:00 2001 From: Mayuresh Kulkarni Date: Thu, 26 Apr 2012 17:47:31 +0530 Subject: i2c: tegra: prevent corruption for devices that support multiple buses - I2C2 on ventana is capable of multiplexing the bus between pin-group DDC and GEN2 - but struct tegra_i2c_dev is capable of storing only 1 bus info causing corruption Change-Id: I1526381a744ee28e4db7d7b12513a08d47e5bbc8 Signed-off-by: Mayuresh Kulkarni Reviewed-on: http://git-master/r/99103 Reviewed-by: Varun Wadekar --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/i2c') diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 3f27df6ba6a0..049fe4f707f7 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -193,7 +193,7 @@ struct tegra_i2c_dev { bool is_high_speed_enable; u16 hs_master_code; int (*arb_recovery)(int scl_gpio, int sda_gpio); - struct tegra_i2c_bus busses[1]; + struct tegra_i2c_bus busses[TEGRA_I2C_MAX_BUS]; }; static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val, unsigned long reg) -- cgit v1.2.3