diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2011-11-30 09:54:11 -0600 |
---|---|---|
committer | Dan Murphy <dmurphy@ti.com> | 2011-12-17 06:07:21 -0600 |
commit | 2a0568a8bc9bea450499c49dfaaa48f0fb65dc48 (patch) | |
tree | bf7ae74f34810cc931a5cadd3c3037e2bf5cd06d /drivers/misc/ti-st | |
parent | dae6da665d9346464472c932c96bd78016df4857 (diff) | |
download | kernel_samsung_espresso10-2a0568a8bc9bea450499c49dfaaa48f0fb65dc48.tar.gz kernel_samsung_espresso10-2a0568a8bc9bea450499c49dfaaa48f0fb65dc48.tar.bz2 kernel_samsung_espresso10-2a0568a8bc9bea450499c49dfaaa48f0fb65dc48.zip |
drivers:misc:ti-st:remove redundant enable/disable
Platform specific chip enable/disable function need to be called only once
during the chip initialization routine.
This is to enable any platform specific initialization to be done for a given
platform.
Change-Id: I7fa815c073e424d745dd4a2d84efc07bf64a0490
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r-- | drivers/misc/ti-st/st_ll.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/misc/ti-st/st_ll.c b/drivers/misc/ti-st/st_ll.c index 0a921bdae7a..1fb8bbce9c2 100644 --- a/drivers/misc/ti-st/st_ll.c +++ b/drivers/misc/ti-st/st_ll.c @@ -94,15 +94,12 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data) /* functions invoked by ST Core */ /* called when ST Core wants to - * enable ST LL */ + * enable ST LL + * Function which resets the ST-LL state, being called with spin lock held and + * hence expected to reset the ll_state and do nothing more than that + */ 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; } @@ -110,12 +107,6 @@ 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; } |