Skip to content

Commit 2232257

Browse files
committed
Drop unused DECLARE_TASKLET_OLD macro
Commit 3682d9e ("Move bottom-half to workqueue for safe sleep") migrated the example code away from tasklets to workqueues. However, the compatibility macro DECLARE_TASKLET_OLD was left behind even though tasklets are no longer used. Remove the unused macro for consistency and clarity.
1 parent ef553aa commit 2232257

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/bottomhalf.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
#define NO_GPIO_REQUEST_ARRAY
2222
#endif
2323

24-
/* Macro DECLARE_TASKLET_OLD exists for compatibility.
25-
* See https://lwn.net/Articles/830964/
26-
*/
27-
#ifndef DECLARE_TASKLET_OLD
28-
#define DECLARE_TASKLET_OLD(arg1, arg2) DECLARE_TASKLET(arg1, arg2, 0L)
29-
#endif
30-
3124
static int button_irqs[] = { -1, -1 };
3225

3326
/* Define GPIOs for LEDs.

0 commit comments

Comments
 (0)