Skip to content

Commit

Permalink
Merge branch 'for-6.12/cp2112' into for-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Tissoires committed Sep 14, 2024
2 parents c0c0186 + e9a081c commit 183650f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/hid/hid-cp2112.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,6 @@ static void cp2112_gpio_poll_callback(struct work_struct *work)
{
struct cp2112_device *dev = container_of(work, struct cp2112_device,
gpio_poll_worker.work);
struct irq_data *d;
u8 gpio_mask;
u32 irq_type;
int irq, virq, ret;
Expand All @@ -1111,12 +1110,10 @@ static void cp2112_gpio_poll_callback(struct work_struct *work)
if (!irq)
continue;

d = irq_get_irq_data(irq);
if (!d)
irq_type = irq_get_trigger_type(irq);
if (!irq_type)
continue;

irq_type = irqd_get_trigger_type(d);

if (gpio_mask & BIT(virq)) {
/* Level High */

Expand Down

0 comments on commit 183650f

Please sign in to comment.