1 |
commit: 39efd4a46e9ce41195e9f9f2a8b82f3f71a0979a |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Wed Sep 8 10:00:23 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 10 07:22:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39efd4a4 |
7 |
|
8 |
sys-power/bbswitch: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22244 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
.../bbswitch/files/bbswitch-0.8-kernel-4.12.patch | 18 -------- |
16 |
.../bbswitch/files/bbswitch-0.8-kernel-5.6.patch | 52 ---------------------- |
17 |
2 files changed, 70 deletions(-) |
18 |
|
19 |
diff --git a/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch |
20 |
deleted file mode 100644 |
21 |
index 1db623d583e..00000000000 |
22 |
--- a/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch |
23 |
+++ /dev/null |
24 |
@@ -1,18 +0,0 @@ |
25 |
-diff -uNr bbswitch-0.8/bbswitch.c bbswitch-0.8-new/bbswitch.c |
26 |
---- bbswitch-0.8/bbswitch.c 2013-12-04 18:22:06.000000000 -0500 |
27 |
-+++ bbswitch-0.8-new/bbswitch.c 2017-07-08 01:11:54.588545766 -0400 |
28 |
-@@ -31,7 +31,14 @@ |
29 |
- #include <linux/pci.h> |
30 |
- #include <linux/acpi.h> |
31 |
- #include <linux/module.h> |
32 |
-+#include <linux/version.h> |
33 |
-+ |
34 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0) |
35 |
-+#include <linux/uaccess.h> |
36 |
-+#else |
37 |
- #include <asm/uaccess.h> |
38 |
-+#endif |
39 |
-+ |
40 |
- #include <linux/suspend.h> |
41 |
- #include <linux/seq_file.h> |
42 |
- #include <linux/pm_runtime.h> |
43 |
|
44 |
diff --git a/sys-power/bbswitch/files/bbswitch-0.8-kernel-5.6.patch b/sys-power/bbswitch/files/bbswitch-0.8-kernel-5.6.patch |
45 |
deleted file mode 100644 |
46 |
index aa95a21cdb0..00000000000 |
47 |
--- a/sys-power/bbswitch/files/bbswitch-0.8-kernel-5.6.patch |
48 |
+++ /dev/null |
49 |
@@ -1,52 +0,0 @@ |
50 |
-From c2f808efeb0820edf23dbb66362ad3091321253f Mon Sep 17 00:00:00 2001 |
51 |
-From: Mateusz Mandera <mateusz.mandera@××××××××××.com> |
52 |
-Date: Tue, 31 Mar 2020 15:11:30 +0200 |
53 |
-Subject: [PATCH] Use proc_ops structure for kernel version >= 5.6.0 |
54 |
- |
55 |
-Since 5.6.0, proc_create requires a proc_ops* argument |
56 |
-instead of file_operations*. |
57 |
---- |
58 |
- bbswitch.c | 13 +++++++++++++ |
59 |
- 1 file changed, 13 insertions(+) |
60 |
- |
61 |
-diff --git a/bbswitch.c b/bbswitch.c |
62 |
-index d64cdae..9ca0e42 100644 |
63 |
---- a/bbswitch.c |
64 |
-+++ b/bbswitch.c |
65 |
-@@ -42,6 +42,9 @@ |
66 |
- #include <linux/suspend.h> |
67 |
- #include <linux/seq_file.h> |
68 |
- #include <linux/pm_runtime.h> |
69 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) |
70 |
-+#include <linux/proc_fs.h> |
71 |
-+#endif |
72 |
- |
73 |
- #define BBSWITCH_VERSION "0.8" |
74 |
- |
75 |
-@@ -382,6 +385,15 @@ static int bbswitch_pm_handler(struct notifier_block *nbp, |
76 |
- return 0; |
77 |
- } |
78 |
- |
79 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) |
80 |
-+static struct proc_ops bbswitch_fops = { |
81 |
-+ .proc_open = bbswitch_proc_open, |
82 |
-+ .proc_read = seq_read, |
83 |
-+ .proc_write = bbswitch_proc_write, |
84 |
-+ .proc_lseek = seq_lseek, |
85 |
-+ .proc_release= single_release |
86 |
-+}; |
87 |
-+#else |
88 |
- static struct file_operations bbswitch_fops = { |
89 |
- .open = bbswitch_proc_open, |
90 |
- .read = seq_read, |
91 |
-@@ -389,6 +401,7 @@ static struct file_operations bbswitch_fops = { |
92 |
- .llseek = seq_lseek, |
93 |
- .release= single_release |
94 |
- }; |
95 |
-+#endif |
96 |
- |
97 |
- static struct notifier_block nb = { |
98 |
- .notifier_call = &bbswitch_pm_handler |
99 |
--- |
100 |
-2.26.0 |
101 |
- |