Skip to content

Commit

Permalink
rp1-pio: Add missing 'static inline's
Browse files Browse the repository at this point in the history
Avoid some duplicate symbol errors by adding some missing
'static inline' decorations.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Nov 20, 2024
1 parent fa6ad4b commit df8a2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/pio_rp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static inline bool pio_can_add_program_at_offset(struct rp1_pio_client *client,
return !rp1_pio_can_add_program(client, &args);
}

uint pio_add_program(struct rp1_pio_client *client, const pio_program_t *program)
static inline uint pio_add_program(struct rp1_pio_client *client, const pio_program_t *program)
{
struct rp1_pio_add_program_args args;
int offset;
Expand Down Expand Up @@ -367,7 +367,7 @@ static inline int pio_sm_set_config(struct rp1_pio_client *client, uint sm,
return rp1_pio_sm_set_config(client, &args);
}

int pio_sm_exec(struct rp1_pio_client *client, uint sm, uint instr)
static inline int pio_sm_exec(struct rp1_pio_client *client, uint sm, uint instr)
{
struct rp1_pio_sm_exec_args args = { .sm = sm, .instr = instr, .blocking = false };

Expand All @@ -377,7 +377,7 @@ int pio_sm_exec(struct rp1_pio_client *client, uint sm, uint instr)
return rp1_pio_sm_exec(client, &args);
}

int pio_sm_exec_wait_blocking(struct rp1_pio_client *client, uint sm, uint instr)
static inline int pio_sm_exec_wait_blocking(struct rp1_pio_client *client, uint sm, uint instr)
{
struct rp1_pio_sm_exec_args args = { .sm = sm, .instr = instr, .blocking = true };

Expand Down

0 comments on commit df8a2f6

Please sign in to comment.