-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multicolor problem on 5.9 or older kernels
- Loading branch information
Showing
10 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- hid-playstation-joy-old.c 2022-03-16 19:32:42.637553700 +0000 | ||
+++ hid-playstation-joy.c 2022-03-16 19:07:41.529202002 +0000 | ||
@@ -12,7 +12,7 @@ | ||
#include <linux/idr.h> | ||
#include <linux/input/mt.h> | ||
#include <linux/leds.h> | ||
-#include <linux/led-class-multicolor.h> | ||
+#include "led-class-multicolor.h" | ||
#include <linux/module.h> | ||
|
||
#include <asm/unaligned.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- led-class-multicolor-old.h 2022-03-16 19:06:09.468540801 +0000 | ||
+++ led-class-multicolor.h 2022-03-16 19:33:18.023039699 +0000 | ||
@@ -30,7 +30,7 @@ | ||
return container_of(led_cdev, struct led_classdev_mc, led_cdev); | ||
} | ||
|
||
-#if IS_ENABLED(CONFIG_LEDS_CLASS_MULTICOLOR) | ||
+#if 1 | ||
/** | ||
* led_classdev_multicolor_register_ext - register a new object of led_classdev | ||
* class with support for multicolor LEDs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- led-class-multicolor-old.c 2022-03-16 19:06:04.611023929 +0000 | ||
+++ led-class-multicolor.c 2022-03-16 19:08:24.118355092 +0000 | ||
@@ -5,7 +5,7 @@ | ||
|
||
#include <linux/device.h> | ||
#include <linux/init.h> | ||
-#include <linux/led-class-multicolor.h> | ||
+#include "led-class-multicolor.h" | ||
#include <linux/module.h> | ||
#include <linux/slab.h> | ||
#include <linux/uaccess.h> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CONFIG_MODULE_SIG=n | ||
|
||
obj-m += hid-playstation-joy.o hid-sony-joy.o led-class-multicolor.o | ||
|
||
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build | ||
|
||
all: | ||
$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD | ||
|
||
install: | ||
cp -v *.ko $(DESTDIR)/ | ||
|
||
clean: | ||
rm -rf deps.h *.o *.ko *.mod.c *.symvers *.order .*.cmd .tmp_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../linux/drivers/leds/led-class-multicolor.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../linux/include/linux/led-class-multicolor.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../linux/drivers/leds/leds.h |