Skip to content

Commit

Permalink
misc: rp1-pio: Back-port some 6.11 build fixes
Browse files Browse the repository at this point in the history
Porting rp1-pio to rpi-6.11.y uncovered a few missing #includes and a
difference of const-ness. Although not needed here, back-porting the
resulting changes makes the driver more "correct" and may prevent a
future merge conflict.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Nov 21, 2024
1 parent df8a2f6 commit d1f0c94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions drivers/misc/rp1-pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#include <linux/init.h>
#include <linux/ioctl.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pio_rp1.h>
#include <linux/platform_device.h>
#include <linux/rp1-firmware.h>
#include <linux/semaphore.h>
#include <linux/slab.h>
Expand Down
2 changes: 1 addition & 1 deletion include/linux/pio_rp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ typedef rp1_pio_sm_config pio_sm_config;
typedef struct rp1_pio_client *PIO;

void pio_set_error(struct rp1_pio_client *client, int err);
int pio_get_error(struct rp1_pio_client *client);
int pio_get_error(const struct rp1_pio_client *client);
void pio_clear_error(struct rp1_pio_client *client);

int rp1_pio_can_add_program(struct rp1_pio_client *client, void *param);
Expand Down

0 comments on commit d1f0c94

Please sign in to comment.