Skip to content

Commit 3db08eb

Browse files
andrewjlamarchehauke
authored andcommitted
airoha: en7523: fix SPI patch no prototype error
en7523 compilation on 6.12 fails with a no prototype warning. Fix this by declaring max_transfer_size and transfer_one_message static. Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com> Link: openwrt#20138 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 46d8319 commit 3db08eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@
254254
+ return xfer->len;
255255
+}
256256
+
257-
+size_t max_transfer_size(struct spi_device *spi)
257+
+static size_t max_transfer_size(struct spi_device *spi)
258258
+{
259259
+ return _ENSPI_MAX_XFER;
260260
+}
261261
+
262-
+int transfer_one_message(struct spi_controller *ctrl, struct spi_message *msg)
262+
+static int transfer_one_message(struct spi_controller *ctrl, struct spi_message *msg)
263263
+{
264264
+ struct spi_transfer *xfer;
265265
+ int next_xfer_is_rx = 0;

0 commit comments

Comments
 (0)