lkml.org 
[lkml]   [2012]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 5/5] MFD: ti_tscadc: add suspend/resume functionality
On 09/13/2012 12:40 PM, Patil, Rachna wrote:
> This patch adds support for suspend/resume of
> TSC/ADC MFDevice.
>
> Signed-off-by: Patil, Rachna <rachna@ti.com>
> ---
> Changes in v2:
> Added this patch newly in this patch series.
>
> Changes in v3:
> No changes.
>
> drivers/iio/adc/ti_adc.c | 32 ++++++++++++++++++++++++++++++++
> drivers/input/touchscreen/ti_tsc.c | 33 +++++++++++++++++++++++++++++++++
> drivers/mfd/ti_tscadc.c | 33 ++++++++++++++++++++++++++++++++-
> include/linux/mfd/ti_tscadc.h | 3 +++
> 4 files changed, 100 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/iio/adc/ti_adc.c b/drivers/iio/adc/ti_adc.c
> index 56f8af2..69f19f0 100644
> --- a/drivers/iio/adc/ti_adc.c
> +++ b/drivers/iio/adc/ti_adc.c
> @@ -207,6 +207,36 @@ static int __devexit tiadc_remove(struct platform_device *pdev)
> return 0;
> }
>
[...]
> static struct platform_driver tiadc_driver = {
> .driver = {
> .name = "tiadc",
> @@ -214,6 +244,8 @@ static struct platform_driver tiadc_driver = {
> },
> .probe = tiadc_probe,
> .remove = __devexit_p(tiadc_remove),
> + .suspend = adc_suspend,
> + .resume = adc_resume,
> };
>


Using the suspend/resume callbacks is deprecated, please use dev_pm_ops.
Same comment applies to the other two drivers.




\
 
 \ /
  Last update: 2012-09-13 16:01    [W:0.133 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site