drivers: misc: ti-st: remove commented code
Rakesh Goyal [Tue, 24 Jan 2012 15:30:53 +0000 (20:30 +0530)]
Removing commented and unused code from the driver

Bug 926128
Reviewed-on: http://git-master/r/77038

Change-Id: I373112b09cdb5bcb25f409e31da17f678590aaa1
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78438
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R1121cef45f9f8bc80c37065bb74046a78bc0d26a

drivers/misc/ti-st/st_core.c
drivers/misc/ti-st/st_kim.c
drivers/misc/ti-st/st_ll.c

index 5a92118..b811b7d 100644 (file)
@@ -50,7 +50,6 @@ static void remove_channel_from_table(struct st_data_s *st_gdata,
                struct st_proto_s *proto)
 {
        pr_info("%s: id %d\n", __func__, proto->chnl_id);
-/*     st_gdata->list[proto->chnl_id] = NULL; */
        st_gdata->is_registered[proto->chnl_id] = false;
 }
 
index 505e359..a0ef25c 100644 (file)
@@ -507,8 +507,6 @@ long st_kim_stop(void *kim_data)
 {
        long err = 0;
        struct kim_data_s       *kim_gdata = (struct kim_data_s *)kim_data;
-       struct ti_st_plat_data  *pdata =
-               kim_gdata->kim_pdev->dev.platform_data;
        struct tty_struct       *tty = kim_gdata->core_data->tty;
 
        INIT_COMPLETION(kim_gdata->ldisc_installed);
@@ -540,9 +538,6 @@ long st_kim_stop(void *kim_data)
        mdelay(1);
        gpio_set_value(kim_gdata->nshutdown, GPIO_LOW);
 
-       /* platform specific disable */
-       /*if (pdata->chip_disable)
-               pdata->chip_disable();*/
        return err;
 }
 
index c2908e0..9e2c257 100644 (file)
@@ -54,22 +54,14 @@ static void ll_device_want_to_sleep(struct st_data_s *st_data)
        /* communicate to platform about chip asleep */
        kim_data = st_data->kim_data;
        pdata = kim_data->kim_pdev->dev.platform_data;
-       /*if (pdata->chip_asleep)
-               pdata->chip_asleep();*/
 }
 
 static void ll_device_want_to_wakeup(struct st_data_s *st_data)
 {
-       struct kim_data_s       *kim_data = st_data->kim_data;
-       struct ti_st_plat_data  *pdata = kim_data->kim_pdev->dev.platform_data;
-
        /* diff actions in diff states */
        switch (st_data->ll_state) {
        case ST_LL_ASLEEP:
                /* communicate to platform about chip wakeup */
-               /*if (pdata->chip_awake)
-                       pdata->chip_awake();*/
-
                send_ll_cmd(st_data, LL_WAKE_UP_ACK);   /* send wake_ack */
                break;
        case ST_LL_ASLEEP_TO_AWAKE:
@@ -90,12 +82,6 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data)
 
        /* update state */
        st_data->ll_state = ST_LL_AWAKE;
-
-       /* communicate to platform about chip wakeup */
-       kim_data = st_data->kim_data;
-       pdata = kim_data->kim_pdev->dev.platform_data;
-       if (pdata->chip_asleep)
-               pdata->chip_awake(NULL);
 }
 
 /**********************************************************************/
@@ -105,12 +91,7 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data)
  * enable ST LL */
 void st_ll_enable(struct st_data_s *ll)
 {
-       struct kim_data_s      *kim_data = ll->kim_data;
-       struct ti_st_plat_data *pdata = kim_data->kim_pdev->dev.platform_data;
        /* communicate to platform about chip enable */
-       /*if (pdata->chip_enable)
-               pdata->chip_enable();*/
-
        ll->ll_state = ST_LL_AWAKE;
 }
 
@@ -118,12 +99,7 @@ void st_ll_enable(struct st_data_s *ll)
  * disable ST LL */
 void st_ll_disable(struct st_data_s *ll)
 {
-       struct kim_data_s      *kim_data = ll->kim_data;
-       struct ti_st_plat_data *pdata = kim_data->kim_pdev->dev.platform_data;
        /* communicate to platform about chip disable */
-       /*if (pdata->chip_disable)
-               pdata->chip_disable();*/
-
        ll->ll_state = ST_LL_INVALID;
 }
 
@@ -135,9 +111,6 @@ void st_ll_wakeup(struct st_data_s *ll)
 
        if (likely(ll->ll_state != ST_LL_AWAKE)) {
                /* communicate to platform about chip wakeup */
-               /*if (pdata->chip_awake)
-                       pdata->chip_awake();*/
-
                send_ll_cmd(ll, LL_WAKE_UP_IND);        /* WAKE_IND */
                ll->ll_state = ST_LL_ASLEEP_TO_AWAKE;
        } else {