misc/rp1-pio: Fix copy/paste error in pio_rp1.h

As per the subject, there was a copy/paste error that caused
pio_sm_unclaim from a driver to result in a call to
pio_sm_claim. Fix it.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
Phil Elwell
2024-11-25 16:19:55 +00:00
parent 7121ef1fe7
commit ae98140312

View File

@@ -320,7 +320,7 @@ static inline int pio_sm_unclaim(struct rp1_pio_client *client, uint sm)
if (bad_params_if(client, sm >= NUM_PIO_STATE_MACHINES))
return -EINVAL;
return rp1_pio_sm_claim(client, &args);
return rp1_pio_sm_unclaim(client, &args);
}
static inline int pio_claim_unused_sm(struct rp1_pio_client *client, bool required)