Skip to content

Commit 0021d50

Browse files
Shem Multinymousevgeni
authored andcommitted
import of tp-smapi version 0.39
1 parent ae8bc8a commit 0021d50

4 files changed

Lines changed: 16 additions & 5 deletions

File tree

CHANGES

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
Change history for tp_smapi:
22

3+
0.39 2008-09-27
4+
---------------------
5+
- Fixed compilation on kernels <2.6.26
6+
(thanks to Evgeni Golov and Whoopie!)
7+
38
0.38 2008-09-26
49
---------------------
5-
- Fixed compilation on kernel 2.6.27-rc7
10+
- Fixed compilation on kernel 2.6.27-rc7.
611
- tp_smapi: Added a new battery attribute
712
/sys/devices/platform/smapi/BAT?/remaining_percent_error
813
This is the error margin for the remaing_percent attribute.

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tp_smapi version 0.38
1+
tp_smapi version 0.39
22
IBM ThinkPad hardware functions driver
33

44
Author: Shem Multinymous <multinymous@gmail.com>

thinkpad_ec.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@
3636
#include <linux/delay.h>
3737
#include <linux/thinkpad_ec.h>
3838
#include <linux/jiffies.h>
39-
#include <linux/semaphore.h>
4039
#include <asm/io.h>
4140

42-
#define TP_VERSION "0.38"
41+
#include <linux/version.h>
42+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
43+
#include <asm/semaphore.h>
44+
#else
45+
#include <linux/semaphore.h>
46+
#endif
47+
48+
#define TP_VERSION "0.39"
4349

4450
MODULE_AUTHOR("Shem Multinymous");
4551
MODULE_DESCRIPTION("ThinkPad embedded controller hardware access");

tp_smapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#include <asm/uaccess.h>
4848
#include <asm/io.h>
4949

50-
#define TP_VERSION "0.38"
50+
#define TP_VERSION "0.39"
5151
#define TP_DESC "ThinkPad SMAPI Support"
5252
#define TP_DIR "smapi"
5353

0 commit comments

Comments
 (0)