summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {