Skip to content

Commit df8a2f6

Browse files
committed
rp1-pio: Add missing 'static inline's
Avoid some duplicate symbol errors by adding some missing 'static inline' decorations. Signed-off-by: Phil Elwell <[email protected]>
1 parent fa6ad4b commit df8a2f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/pio_rp1.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static inline bool pio_can_add_program_at_offset(struct rp1_pio_client *client,
247247
return !rp1_pio_can_add_program(client, &args);
248248
}
249249

250-
uint pio_add_program(struct rp1_pio_client *client, const pio_program_t *program)
250+
static inline uint pio_add_program(struct rp1_pio_client *client, const pio_program_t *program)
251251
{
252252
struct rp1_pio_add_program_args args;
253253
int offset;
@@ -367,7 +367,7 @@ static inline int pio_sm_set_config(struct rp1_pio_client *client, uint sm,
367367
return rp1_pio_sm_set_config(client, &args);
368368
}
369369

370-
int pio_sm_exec(struct rp1_pio_client *client, uint sm, uint instr)
370+
static inline int pio_sm_exec(struct rp1_pio_client *client, uint sm, uint instr)
371371
{
372372
struct rp1_pio_sm_exec_args args = { .sm = sm, .instr = instr, .blocking = false };
373373

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

380-
int pio_sm_exec_wait_blocking(struct rp1_pio_client *client, uint sm, uint instr)
380+
static inline int pio_sm_exec_wait_blocking(struct rp1_pio_client *client, uint sm, uint instr)
381381
{
382382
struct rp1_pio_sm_exec_args args = { .sm = sm, .instr = instr, .blocking = true };
383383

0 commit comments

Comments
 (0)