|
@@ -109,7 +109,7 @@ struct h3600_dev {
|
|
|
static irqreturn_t action_button_handler(int irq, void *dev_id)
|
|
|
{
|
|
|
int down = (GPLR & GPIO_BITSY_ACTION_BUTTON) ? 0 : 1;
|
|
|
- struct input_dev *dev = (struct input_dev *) dev_id;
|
|
|
+ struct input_dev *dev = dev_id;
|
|
|
|
|
|
input_report_key(dev, KEY_ENTER, down);
|
|
|
input_sync(dev);
|
|
@@ -120,7 +120,7 @@ static irqreturn_t action_button_handler(int irq, void *dev_id)
|
|
|
static irqreturn_t npower_button_handler(int irq, void *dev_id)
|
|
|
{
|
|
|
int down = (GPLR & GPIO_BITSY_NPOWER_BUTTON) ? 0 : 1;
|
|
|
- struct input_dev *dev = (struct input_dev *) dev_id;
|
|
|
+ struct input_dev *dev = dev_id;
|
|
|
|
|
|
/*
|
|
|
* This interrupt is only called when we release the key. So we have
|