media: gpio-ir: Put back signedness bugfix

Unintentional revert of

commit 955b44304a
Author: Dan Carpenter <dan.carpenter@oracle.com>
Date:   Sat Mar 10 04:58:18 2012 -0300

    [media] gpio-ir-recv: a couple signedness bugs

came in during the 3.4 upgrade. Put it back.

Change-Id: I8a7c84824a1bd30b11fa108e3da7c4e6feba256c
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
David Brown
2013-03-13 16:17:06 -07:00
committed by Stephen Boyd
parent 4fa4b0e1fd
commit 420a4955ee
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ struct gpio_rc_dev {
struct rc_dev *rcdev;
struct pm_qos_request pm_qos_req;
struct timer_list gpio_ir_timer;
unsigned int gpio_nr;
int gpio_nr;
bool active_low;
int can_sleep;
bool can_wakeup;
@@ -52,7 +52,7 @@ struct gpio_rc_dev {
static irqreturn_t gpio_ir_recv_irq(int irq, void *dev_id)
{
struct gpio_rc_dev *gpio_dev = dev_id;
unsigned int gval;
int gval;
int rc = 0;
enum raw_event_type type = IR_SPACE;
+1 -1
View File
@@ -14,7 +14,7 @@
#define __GPIO_IR_RECV_H__
struct gpio_ir_recv_platform_data {
unsigned int gpio_nr;
int gpio_nr;
bool active_low;
bool can_wakeup;
u32 swfi_latency;