armbian_build/patch/kernel/archive/sunxi-5.17/0001-Fix-include-uapi-spi-spidev-module.patch
The-going ca478cc4e5
Bugfix spidev (#3737)
* sunxi-5.17: Fix include uapi spi spidev module

* add a compatible string alias "spi-dev" for spidev module

* overlay: Change the string compatible "spidev" to "spi-dev"

* remove unused patches

* drv: spi: spidev: fix header uapi

* Add alias "spi-dev" for module spidev

Add the armbian alias "spi-dev" to load and
initialize the spidev module from the device tree.

* Move patches for orangepi3-lts to series

* Remove unused patches
2022-05-12 19:11:40 +02:00

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