summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorMayuresh Kulkarni <mkulkarni@nvidia.com>2012-04-26 17:47:31 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-04-26 05:42:00 -0700
commit8549e8a17193ae5fb35a2d7f10b6f609f217a9a2 (patch)
treefb4f75ffe99d457f0bebfedb5dba80156421783c /drivers/i2c
parent8ceec9456c21f55785c751bf76e080599cf508f3 (diff)
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 <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/99103 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c2
1 files changed, 1 insertions, 1 deletions
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)