summaryrefslogtreecommitdiffstats
path: root/system/tp_smapi/patches
diff options
context:
space:
mode:
author Antonio Hernández Blas <hba.nihilismus@gmail.com>2011-10-30 17:23:58 -0500
committer Niels Horn <niels.horn@slackbuilds.org>2011-11-04 22:02:25 -0200
commitf19e89515b8fe1cbd1e773e32f71ee59d2623851 (patch)
treef9da268e7fcf7ce92fa4059417bf806ade1805f2 /system/tp_smapi/patches
parent38b8da011417e299f61d38e94154028b9e881e14 (diff)
downloadslackbuilds-f19e89515b8fe1cbd1e773e32f71ee59d2623851.tar.gz
slackbuilds-f19e89515b8fe1cbd1e773e32f71ee59d2623851.tar.xz
system/tp_smapi: Updated for version 0.41.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/tp_smapi/patches')
-rw-r--r--system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch30
-rw-r--r--system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch11
2 files changed, 0 insertions, 41 deletions
diff --git a/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch b/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch
deleted file mode 100644
index 60f05997a1..0000000000
--- a/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -urN tp_smapi-0.40.orig/thinkpad_ec.c tp_smapi-0.40/thinkpad_ec.c
---- tp_smapi-0.40.orig/thinkpad_ec.c 2008-12-16 08:03:06.000000000 +0300
-+++ tp_smapi-0.40/thinkpad_ec.c 2010-11-22 18:16:54.000000000 +0300
-@@ -88,7 +88,11 @@
- #define TPC_PREFETCH_JUNK (INITIAL_JIFFIES+1) /* Ignore prefetch */
-
- /* Locking: */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(thinkpad_ec_mutex);
-+#else
-+static DEFINE_SEMAPHORE(thinkpad_ec_mutex);
-+#endif
-
- /* Kludge in case the ACPI DSDT reserves the ports we need. */
- static int force_io; /* Willing to do IO to ports we couldn't reserve? */
-diff -urN tp_smapi-0.40.orig/tp_smapi.c tp_smapi-0.40/tp_smapi.c
---- tp_smapi-0.40.orig/tp_smapi.c 2008-12-16 08:03:06.000000000 +0300
-+++ tp_smapi-0.40/tp_smapi.c 2010-11-22 18:17:29.000000000 +0300
-@@ -109,7 +109,11 @@
- #define SMAPI_PORT2 0x4F /* fixed port, meaning unclear */
- static unsigned short smapi_port; /* APM control port, normally 0xB2 */
-
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(smapi_mutex);
-+#else
-+static DEFINE_SEMAPHORE(smapi_mutex);
-+#endif
-
- /**
- * find_smapi_port - read SMAPI port from NVRAM
diff --git a/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch b/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch
deleted file mode 100644
index b1c4fa5c1a..0000000000
--- a/system/tp_smapi/patches/tp_smapi-0.40-x200-x200s-support.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/hdaps.c
-+++ b/hdaps.c
-@@ -750,6 +750,8 @@
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X60s", HDAPS_ORIENT_INVERT_Y),
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X60", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_X),
- HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X61", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_X),
-+ HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X200", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_XY),
-+ HDAPS_DMI_MATCH_INVERT("LENOVO", "ThinkPad X200s", HDAPS_ORIENT_SWAP | HDAPS_ORIENT_INVERT_XY),
- { .ident = NULL }
- };
-