We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce28dae + e9a081c commit 0aa0437Copy full SHA for 0aa0437
drivers/hid/hid-cp2112.c
@@ -1094,7 +1094,6 @@ static void cp2112_gpio_poll_callback(struct work_struct *work)
1094
{
1095
struct cp2112_device *dev = container_of(work, struct cp2112_device,
1096
gpio_poll_worker.work);
1097
- struct irq_data *d;
1098
u8 gpio_mask;
1099
u32 irq_type;
1100
int irq, virq, ret;
@@ -1111,12 +1110,10 @@ static void cp2112_gpio_poll_callback(struct work_struct *work)
1111
1110
if (!irq)
1112
continue;
1113
1114
- d = irq_get_irq_data(irq);
1115
- if (!d)
+ irq_type = irq_get_trigger_type(irq);
+ if (!irq_type)
1116
1117
1118
- irq_type = irqd_get_trigger_type(d);
1119
-
1120
if (gpio_mask & BIT(virq)) {
1121
/* Level High */
1122
0 commit comments