Commit 9e05fadf authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

i2c: minor cleanups to twl4030-pwrbutton.c

Trivial brainless fixes, a few unused headers removed,
changed one printk to pr_err() and removed one comment.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d4ada6ae
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/input.h> #include <linux/input.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/kthread.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/i2c/twl4030.h> #include <linux/i2c/twl4030.h>
...@@ -47,11 +44,6 @@ ...@@ -47,11 +44,6 @@
static struct input_dev *powerbutton_dev; static struct input_dev *powerbutton_dev;
/*
* Note : the following function runs in kernel thread context
* with IRQs enabled
*/
static irqreturn_t powerbutton_irq(int irq, void *dev_id) static irqreturn_t powerbutton_irq(int irq, void *dev_id)
{ {
int err; int err;
...@@ -63,7 +55,7 @@ static irqreturn_t powerbutton_irq(int irq, void *dev_id) ...@@ -63,7 +55,7 @@ static irqreturn_t powerbutton_irq(int irq, void *dev_id)
input_report_key(powerbutton_dev, KEY_POWER, input_report_key(powerbutton_dev, KEY_POWER,
value & PWR_PWRON_IRQ); value & PWR_PWRON_IRQ);
} else { } else {
printk(KERN_WARNING "I2C error %d while reading TWL4030" pr_err("twl4030: i2c error %d while reading TWL4030"
" PM_MASTER STS_HW_CONDITIONS register\n", err); " PM_MASTER STS_HW_CONDITIONS register\n", err);
} }
......
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