|
|
@@ -65,7 +65,7 @@ static void gpio_status_delay_work_func(struct work_struct *work)
|
|
|
struct cashd_device *dev = container_of(dwork, struct cashd_device, delay_work2);
|
|
|
|
|
|
value = readl(dev->gpio_status_reg_base);
|
|
|
- value = value & 0x1;
|
|
|
+ value = value & 0x2;
|
|
|
if(value != dev->last_status)
|
|
|
{
|
|
|
dev->last_status = value;
|
|
|
@@ -132,7 +132,7 @@ static ssize_t cashd_read(struct file *filp, char __user *buf,
|
|
|
|
|
|
dev->in_status = readl(dev->gpio_status_reg_base);
|
|
|
|
|
|
- if(dev->in_status & 0x1)
|
|
|
+ if(dev->in_status & 0x2)
|
|
|
{
|
|
|
ret = copy_to_user(buf, "o", 1);
|
|
|
if(ret != 0)
|