fixup! gpio-fsm: Avoid truncation of delay jiffies

The kernel's time unit of jiffies should be stored as an unsigned long
value. Storing it as an unsigned int, as gpio-fsm did, leads to
truncation and malfunction when the kernel is built for a 64-bit
platform.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
Phil Elwell
2023-04-01 11:50:07 +01:00
committed by Dom Cobley
parent e70fd365db
commit a53e0c372a

View File

@@ -122,7 +122,7 @@ struct gpio_fsm {
struct fsm_state *current_state;
struct fsm_state *next_state;
struct fsm_state *delay_target_state;
unsigned int delay_jiffies;
unsigned long delay_jiffies;
int delay_ms;
unsigned int debug;
bool shutting_down;