Commit Graph

72 Commits

Author SHA1 Message Date
Evgeni Golov
bf5c951473 modernize rpm spec 2023-08-05 11:18:18 +02:00
Evgeni Golov
508dfd27ed add packit 2023-08-05 08:31:32 +02:00
Evgeni Golov
6e80bb1752 release 0.44 2023-07-31 20:05:27 +02:00
Evgeni Golov
35be4ab60d add 5.10 kernel to CI 2023-06-19 16:31:23 +02:00
Evgeni Golov
0c3398b1ac update DEFINE_SEMAPHORE usage for linux 6.4+
Linux changed the DEFINE_SEMAPHORE macro in
48380368dec14859723b9e3fbd43e042638d9a76, making it take two parameters
instead of one. Pass an explicit 1 as on 6.4+.
2023-06-19 14:23:03 +02:00
Evgeni Golov
0bfa3a258b add GHA based CI 2023-06-19 13:32:50 +02:00
Evgeni Golov
a63729ab30 release 0.43
closes: #32
2018-02-24 16:59:51 +01:00
Jan Nordholz
76c5120f7b Adapt HDAPS driver to use the new timer_setup() interface.
Linux 4.15 removed the ancient init_timer() API and changed the signature
of the timer handler function.

Signed-off-by: Jan Nordholz <jnordholz@sec.t-labs.tu-berlin.de>
Closes: #31
2017-12-27 14:41:34 +01:00
Evgeni Golov
fc60d0da26 Merge pull request #29 from EdwardBetts/spelling
correct spelling mistake
2017-09-02 13:27:49 +02:00
Edward Betts
bee55a9b65 correct spelling mistake 2017-09-02 08:04:54 +01:00
Evgeni Golov
cfe115e895 document supported and unsupported models 2016-07-24 09:14:04 +02:00
Evgeni Golov
555fdb6c92 mark hdaps_whitelist as initconst instead of initdata
this fixes build issues with grsec enabled kernels:

DKMS make.log for tp_smapi-dkms-0.42 for kernel 4.6.4.201607112205-1-grsec (x86_64)
Sat Jul 16 01:31:14 EDT 2016
make -C /usr/lib/modules/4.6.4.201607112205-1-grsec/build M=/var/lib/dkms/tp_smapi-dkms/0.42/build O=/usr/lib/modules/4.6.4.201607112205-1-grsec/build modules
make[1]: Entering directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/build'
make[2]: Entering directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/build'
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/thinkpad_ec.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/thinkpad_ec.o: warning: objtool: thinkpad_ec_exit(): can't find starting instruction
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/tp_smapi.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/tp_smapi.o: warning: objtool: tp_exit(): can't find starting instruction
  CC [M]  /var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.o
/var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.c:738:33: error: constified variable ‘hdaps_whitelist’ placed into writable section ".init.data"
 struct dmi_system_id __initdata hdaps_whitelist[] = {
                                 ^~~~~~~~~~~~~~~
make[3]: *** [/usr/lib/modules/4.6.4.201607112205-1-grsec/build/scripts/Makefile.build:298: /var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.o] Error 1
make[2]: *** [/usr/lib/modules/4.6.4.201607112205-1-grsec/build/Makefile:1437: _module_/var/lib/dkms/tp_smapi-dkms/0.42/build] Error 2
make[2]: Leaving directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/build'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.6.4.201607112205-1-grsec/build'
make: *** [Makefile:46: modules] Error 2

thanks: Sean Behan <seanwbehan@riseup.net>
2016-07-24 09:00:07 +02:00
Evgeni Golov
d5837f2ae1 add W520 invert value
thanks arch!
https://aur.archlinux.org/cgit/aur.git/tree/hdaps.conf?h=hdaps_lenovo-w520
2016-05-01 10:19:45 +02:00
Evgeni Golov
eacaa1e008 fix typo in hdaps invert for W510 2016-05-01 10:18:45 +02:00
Evgeni Golov
697ac0bdb8 release 0.42, yay 2016-04-23 19:44:19 +02:00
Evgeni Golov
ee9344e555 set version in spec file too 2016-04-23 19:42:22 +02:00
Evgeni Golov
7c187cd310 Merge remote-tracking branch 'bboozzoo/master' 2016-04-23 19:34:47 +02:00
Evgeni Golov
4efaa7e262 drop include dir from readme 2016-04-23 19:30:55 +02:00
Evgeni Golov
9bb576fd5b add changelog for 0.41 2016-04-23 19:22:27 +02:00
Joerg Mayer
8f40fcf3d9 change type of force_io to bool
v2: Fix the type warning the other way round as proposed by Bjorn Mork

Fix for the following warning:
  CC [M]  /home/jmayer/work/thinkpad/git/thinkpad_ec.o
In file included from /usr/src/linux-3.14.1-1.geafcebd/include/linux/module.h:17:0,
                 from /home/jmayer/work/thinkpad/git/thinkpad_ec.c:33:
/home/jmayer/work/thinkpad/git/thinkpad_ec.c: In function ‘__check_force_io’:
/usr/src/linux-3.14.1-1.geafcebd/include/linux/moduleparam.h:349:45: warning: return from incompatible pointer type [enabled by default]
  static inline type *__check_##name(void) { return(p); }
                                             ^
/usr/src/linux-3.14.1-1.geafcebd/include/linux/moduleparam.h:395:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
/usr/src/linux-3.14.1-1.geafcebd/include/linux/moduleparam.h:127:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
/home/jmayer/work/thinkpad/git/thinkpad_ec.c💯1: note: in expansion of macro ‘module_param_named’
 module_param_named(force_io, force_io, bool, 0600);
 ^

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
2014-05-06 07:54:55 +02:00
Evgeni Golov
a80f7f2834 update hdaps orientation quirks
Thanks to Maikel <mkllnk@web.de> and http://www.thinkwiki.org/wiki/Tp_smapi#Model-specific_status

Closes Debian Bug #735631
2014-01-17 08:06:11 +01:00
Maciej Borzecki
e831ede521 Makefile fix 2013-12-11 23:07:16 +01:00
Maciej Borzecki
41e2ee56b0 Merge remote-tracking branch 'upstream/master'
Conflicts:
	dkms.conf
2013-12-11 23:07:00 +01:00
Evgeni Golov
2e9ca94dbb add dkms support
closes #13
2013-04-07 19:14:45 +02:00
Evgeni Golov
dc26441f45 stop sed'ing around during make 2013-04-07 18:55:20 +02:00
Evgeni Golov
365c311a3b allow building via kbuild
see https://www.kernel.org/doc/Documentation/kbuild/modules.txt
2013-04-07 18:45:21 +02:00
jmltp@loplof.de
a06157f3c9 Fix depmod to work with not-running kernels
depmod -a requires the directory /lib/modules/<currently-running-kernel>/
to exist. If it doesn't, depmod fails to create the temp files. Fix this.

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
2013-04-07 15:29:43 +02:00
jmltp@loplof.de
298e2c024e Allow build of modules for not-running kernel versions
The current Makefile always sets KVER and some other variables to the
version of the currently running kernel and does not allow overriding
this value. So installing a newer kernel and building and installing
the modules for the new version will not work before activation of the
new kernel. With this patch, the following can be done:

export KVER=<newly-installed-kernel-version>
echo "Kernel version to build for: $KVER"
export MOD_DIR=/lib/modules/${KVER}/extra/
KVER=${KVER} MOD_DIR=${MOD_DIR} HDAPS=1 make

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
2013-04-07 15:29:07 +02:00
jmltp@loplof.de
72d23ff2af Add gitignore
Signed-off-by: Joerg Mayer <jmayer@loplof.de>
2013-04-07 15:26:19 +02:00
Maciek Borzecki
0f6e180333 add create-rpm target, check for VER when doing release targets 2012-09-23 14:03:18 +02:00
Maciek Borzecki
847fa91f41 specify group in RPM spec 2012-09-23 13:12:05 +02:00
Maciek Borzecki
8c86a7d438 adding RPM spec 2012-09-23 12:58:40 +02:00
Maciek Borzecki
79f92b36bd Merge branch 'upstream-master' 2012-09-23 12:27:28 +02:00
Maciek Borzecki
60f092de65 add dkms support 2012-09-22 23:42:16 +02:00
Andreas Freimuth
9ec9ed71a4 add hdaps quirks for T410s and W510 ThinkPads 2012-01-20 18:32:39 +01:00
Andreas Freimuth
531f132448 power_supply_class.txt has moved to Documentaiton/power/ 2012-01-20 18:31:47 +01:00
Damjan Georgievski
477c48daaa Remove trailing whitespace 2011-10-26 20:36:37 +02:00
Damjan Georgievski
f720c556f8 Move drivers to drivers/platform/x86
Moved thinkpad_ec.h, thinkpad_ec.c and smapi.c to drivers/platform/x86/
2011-10-26 18:59:39 +02:00
Damjan Georgievski
98741257d8 hdaps.c is moved in recent kernels
Since some time (2.6.38?) hdaps.c is in drivers/platform/x86/ and not in drivers/hwmon/
2011-10-26 18:59:29 +02:00
Evgeni Golov
36d9887ba5 prepare 0.41 2011-07-28 19:06:30 +02:00
Evgeni Golov
8ba1e2cffc git-archive → git archive 2011-07-28 19:05:30 +02:00
Evgeni Golov
e414eeafd1 remove stupid check for kernel >= 2.6.19 2011-07-28 19:03:35 +02:00
Evgeni Golov
b204fca522 fix compiler warning, our parameter is an unsigned long actually 2011-07-28 18:30:05 +02:00
Evgeni Golov
a61d8325be chargecontrol fix by @ginkel 2011-07-28 18:00:56 +02:00
Evgeni Golov
bbc873cc35 fix a typo 2011-07-28 17:48:03 +02:00
Evgeni Golov
1c49944e5d x220 needs HDAPS_ORIENT_SWAP 2011-07-28 17:38:09 +02:00
Evgeni Golov
280da64b12 just load on EVERY lenovo branded thinkpad
this fixes the problem there is no embedded controller in the dmi
on the sandy bridge thinkpads

closes #1
2011-07-28 17:36:43 +02:00
Evgeni Golov
842d329bb2 add a bunch of newer (T400/410/500, X200/201) ThinkPads to hdaps quirks 2011-06-27 21:10:08 +02:00
Tanaka Watanabe
4b812d4f58 use DEFINE_SEMAPHORE in 2.6.37+
Building tp_smapi against 2.6.37 fails because 'DECLARE_MUTEX'
has been removed in 4882720b267b7b1d1b0ce08334b205f0329d4615
in torvalds/linux-2.6.git. Use DEFINE_SEMAPHORE instead.
2011-06-27 21:09:13 +02:00
Evgeni Golov
ecd90e2a2a directly include thinkpad_ec.h
playing around with a virtual include dir is useless
2011-06-27 21:07:23 +02:00