author: Linus Torvalds <torvalds@linux-foundation.org> 2021-04-27 10:16:46 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-04-27 10:16:46 -0700
commit: 57fa2369ab17d67e6232f85b868652fbf4407206
parent: 2fbc66c7838a7fbfb91bf8e119e51e73b4a8a0bc
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index df981e55c24c..f1cf2232f0b5 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -454,7 +454,8 @@ struct rx_ranges {
u8 *end;
};
-static int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b)
+static int rx_ranges_cmp(void *priv, const struct list_head *a,
+ const struct list_head *b)
{
struct rx_ranges *rx_a = list_entry(a, struct rx_ranges, list);
struct rx_ranges *rx_b = list_entry(b, struct rx_ranges, list);