Commit 9afd4b70 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

CBUS: Manage bias voltage in retu-headset suspend/resume code

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0de1ae4b
......@@ -288,11 +288,21 @@ static int retu_headset_remove(struct platform_device *pdev)
static int retu_headset_suspend(struct platform_device *pdev,
pm_message_t mesg)
{
struct retu_headset *hs = platform_get_drvdata(pdev);
if (hs->bias_enabled)
retu_headset_set_bias(0);
return 0;
}
static int retu_headset_resume(struct platform_device *pdev)
{
struct retu_headset *hs = platform_get_drvdata(pdev);
if (hs->bias_enabled)
retu_headset_set_bias(1);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment