Commit 0de1ae4b authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

CBUS: Cleanup retu-headset driver

Few cleanups, coding style fixes and unused stuff removal.
Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f3fedd4d
...@@ -32,18 +32,15 @@ ...@@ -32,18 +32,15 @@
#define RETU_HEADSET_KEY KEY_PHONE #define RETU_HEADSET_KEY KEY_PHONE
#define STATE_DISABLE_DET 1
#define STATE_ENABLE_DET 2
struct retu_headset { struct retu_headset {
spinlock_t lock;
struct platform_device *pdev; struct platform_device *pdev;
struct input_dev *idev; struct input_dev *idev;
unsigned bias_enabled:1; unsigned bias_enabled:1;
unsigned detection_enabled:1;
unsigned detection_enabled:1, pressed:1; unsigned pressed:1;
int detection_state; struct timer_list enable_timer;
struct timer_list enable_timer, detect_timer; struct timer_list detect_timer;
spinlock_t lock;
}; };
static void retu_headset_set_bias(int enable) static void retu_headset_set_bias(int enable)
...@@ -288,7 +285,8 @@ static int retu_headset_remove(struct platform_device *pdev) ...@@ -288,7 +285,8 @@ static int retu_headset_remove(struct platform_device *pdev)
return 0; return 0;
} }
static int retu_headset_suspend(struct platform_device *pdev, pm_message_t mesg) static int retu_headset_suspend(struct platform_device *pdev,
pm_message_t mesg)
{ {
return 0; return 0;
} }
...@@ -298,7 +296,6 @@ static int retu_headset_resume(struct platform_device *pdev) ...@@ -298,7 +296,6 @@ static int retu_headset_resume(struct platform_device *pdev)
return 0; return 0;
} }
static struct platform_driver retu_headset_driver = { static struct platform_driver retu_headset_driver = {
.probe = retu_headset_probe, .probe = retu_headset_probe,
.remove = retu_headset_remove, .remove = retu_headset_remove,
......
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