mirror of
https://github.com/armbian/build.git
synced 2025-08-09 20:56:57 +02:00
* sunxi-5.18 Initial state for armbian patches * Adapting patches to the new kernel, sort, add new megous patches * DEBUG * Add the latest patches * fix: compile error drivers/spi/spi.c:3548:3: note: in expansion of macro ‘dev_info’ dev_info(&spi->dev, "spi_setup / gpio_is_valid(%d) ... doing gpio_request ...\n", spi->cs_gpio); ^~~~~~~~ drivers/spi/spi.c:3549:9: error: implicit declaration of function ‘gpio_request’; did you mean ‘gpio_to_desc’? [-Werror=implicit-function-declaration] ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev)); ^~~~~~~~~~~~ gpio_to_desc drivers/spi/spi.c:3549:27: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev)); ^~~~~~~ cs_gpiod drivers/spi/spi.c:3554:4: error: implicit declaration of function ‘gpio_direction_output’; did you mean ‘gpiod_direction_output’? [-Werror=implicit-function-declaration] gpio_direction_output(spi->cs_gpio, ^~~~~~~~~~~~~~~~~~~~~ gpiod_direction_output drivers/spi/spi.c:3554:31: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? gpio_direction_output(spi->cs_gpio, ^~~~~~~ cs_gpiod In file included from ./include/linux/device.h:15, from drivers/spi/spi.c:8: drivers/spi/spi.c:3556:79: error: ‘struct spi_device’ has no member named ‘cs_gpio’; did you mean ‘cs_gpiod’? * Remove pre-applied patches
27 lines
666 B
Diff
27 lines
666 B
Diff
From 40349a8ff29bf1d98163182369d74d326d277a54 Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Thu, 28 Apr 2022 15:45:14 +0300
|
|
Subject: [PATCH] Fix include uapi spi spidev module
|
|
|
|
---
|
|
drivers/spi/spidev.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
|
|
index 2c53e2b5a..f3737dc72 100644
|
|
--- a/drivers/spi/spidev.c
|
|
+++ b/drivers/spi/spidev.c
|
|
@@ -22,8 +22,7 @@
|
|
#include <linux/of_device.h>
|
|
#include <linux/acpi.h>
|
|
|
|
-#include <linux/spi/spi.h>
|
|
-#include <linux/spi/spidev.h>
|
|
+#include <uapi/linux/spi/spidev.h>
|
|
|
|
#include <linux/uaccess.h>
|
|
|
|
--
|
|
2.34.1
|
|
|