Message ID | 1337343153-3019-6-git-send-email-rajeshwari.s@samsung.com |
---|---|
State | New |
Headers | show |
On Fri, May 18, 2012 at 5:12 AM, Rajeshwari Shinde <rajeshwari.s@samsung.com > wrote: > As exynos has more than one i2c channels. This patch adds offset padding > for struct s3c24x0_i2c, in order to get the new base address of next i2c > channel. > > Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com> > Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> > This is a bit ugly, but I understand the reason for it at present. Acked-by: Simon Glass <sjg@chromium.org> > --- > drivers/i2c/s3c24x0_i2c.h | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h > index 2dd4b06..d357a0a 100644 > --- a/drivers/i2c/s3c24x0_i2c.h > +++ b/drivers/i2c/s3c24x0_i2c.h > @@ -29,5 +29,8 @@ struct s3c24x0_i2c { > u32 iicadd; > u32 iicds; > u32 iiclc; > +#ifdef CONFIG_EXYNOS5 > + uchar res1[0xffec]; > +#endif > }; > #endif /* _S3C24X0_I2C_H */ > -- > 1.7.4.4 > >
diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h index 2dd4b06..d357a0a 100644 --- a/drivers/i2c/s3c24x0_i2c.h +++ b/drivers/i2c/s3c24x0_i2c.h @@ -29,5 +29,8 @@ struct s3c24x0_i2c { u32 iicadd; u32 iicds; u32 iiclc; +#ifdef CONFIG_EXYNOS5 + uchar res1[0xffec]; +#endif }; #endif /* _S3C24X0_I2C_H */