summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Goyal <rgoyal@nvidia.com>2012-01-24 21:00:53 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-02-03 05:21:50 -0800
commit83c067e13d7af72eb36b6d839e3a803946326b28 (patch)
tree7339ea04c2e51e1e8bd67fcc1a80440eabd1af8a
parentf7d2f0cad9b563b32f5973f304cd9fceb222fcd1 (diff)
drivers: misc: ti-st: remove commented code
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
-rw-r--r--drivers/misc/ti-st/st_core.c1
-rw-r--r--drivers/misc/ti-st/st_kim.c5
-rw-r--r--drivers/misc/ti-st/st_ll.c27
3 files changed, 0 insertions, 33 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index c03590210297..0308744f0664 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -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;
}
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c
index 901f4c46f9c9..a823977c36c3 100644
--- a/drivers/misc/ti-st/st_kim.c
+++ b/drivers/misc/ti-st/st_kim.c
@@ -516,8 +516,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;
INIT_COMPLETION(kim_gdata->ldisc_installed);
@@ -545,9 +543,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;
}
diff --git a/drivers/misc/ti-st/st_ll.c b/drivers/misc/ti-st/st_ll.c
index c2908e04ecfa..9e2c257f65fe 100644
--- a/drivers/misc/ti-st/st_ll.c
+++ b/drivers/misc/ti-st/st_ll.c
@@ -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 {