Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
drivers/misc: tri_state_key: add logging to ist8801 driver
Browse files Browse the repository at this point in the history
IRQ request seems to fail. This will allow what the value is returned
to understand why it fails.

Signed-off-by: Vaisakh Murali <[email protected]>
  • Loading branch information
mvaisakh committed Mar 22, 2023
1 parent b2b2916 commit c6c16a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/misc/tri_state_key/ist_hall_ic/hall_ist8801_down.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ static int ist8801_set_detection_mode(u8 mode)
IRQ_TYPE_EDGE_FALLING | IRQF_ONESHOT,
"ist8801_down", (void *)g_ist8801_data->client);
if (err < 0) {
TRI_KEY_ERR("IRQ LINE NOT AVAILABLE!!\n");
TRI_KEY_ERR("IRQ LINE NOT AVAILABLE!! err: %d\n", err);
return -EINVAL;
}
irq_set_irq_wake(g_ist8801_data->irq, 1);
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/tri_state_key/ist_hall_ic/hall_ist8801_up.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ static int ist8801_set_detection_mode(u8 mode)
IRQ_TYPE_EDGE_FALLING | IRQF_ONESHOT,
"ist8801_up", (void *)g_ist8801_data->client);
if (err < 0) {
TRI_KEY_ERR("IRQ LINE NOT AVAILABLE!!\n");
TRI_KEY_ERR("IRQ LINE NOT AVAILABLE!! err: %d\n", err);
return -EINVAL;
}
irq_set_irq_wake(g_ist8801_data->irq, 1);
Expand Down

0 comments on commit c6c16a7

Please sign in to comment.