Patchwork [U-Boot] I2C: S3C24X0: Remove the dead code

login
register
mail settings
Submitter Rajeshwari Birje
Date Feb. 19, 2013, 5:58 a.m.
Message ID <1361253491-16749-1-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/221619/
State Awaiting Upstream
Delegated to: Heiko Schocher
Headers show

Comments

Rajeshwari Birje - Feb. 19, 2013, 5:58 a.m.
This revomes the code under #if 0 in the s3c24x0_i2c driver.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 drivers/i2c/s3c24x0_i2c.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
Simon Glass - Feb. 28, 2013, 2:22 p.m.
On Mon, Feb 18, 2013 at 9:58 PM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This revomes the code under #if 0 in the s3c24x0_i2c driver.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  drivers/i2c/s3c24x0_i2c.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
> index 769a2ba..00308b5 100644
> --- a/drivers/i2c/s3c24x0_i2c.c
> +++ b/drivers/i2c/s3c24x0_i2c.c
> @@ -86,13 +86,6 @@ static int GetI2CSDA(void)
>  #endif
>  }
>
> -#if 0
> -static void SetI2CSDA(int x)
> -{
> -       rGPEDAT = (rGPEDAT & ~0x8000) | (x & 1) << 15;
> -}
> -#endif
> -
>  static void SetI2CSCL(int x)
>  {
>         struct s3c24x0_gpio *gpio = s3c24x0_get_base_gpio();
> --
> 1.7.4.4
>

Patch

diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index 769a2ba..00308b5 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -86,13 +86,6 @@  static int GetI2CSDA(void)
 #endif
 }
 
-#if 0
-static void SetI2CSDA(int x)
-{
-	rGPEDAT = (rGPEDAT & ~0x8000) | (x & 1) << 15;
-}
-#endif
-
 static void SetI2CSCL(int x)
 {
 	struct s3c24x0_gpio *gpio = s3c24x0_get_base_gpio();