Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| dd6d10edea | |||
| 607f2ecdc2 |
21
del_timer.patch
Normal file
21
del_timer.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff -rU 3 a/tp_smapi/hdaps.c b/tp_smapi/hdaps.c
|
||||
--- a/tp_smapi/hdaps.c 2018-02-24 16:59:51.000000000 +0100
|
||||
+++ b/tp_smapi/hdaps.c 2025-06-11 12:26:58.509555650 +0200
|
||||
@@ -427,7 +427,7 @@
|
||||
static int hdaps_suspend(struct platform_device *dev, pm_message_t state)
|
||||
{
|
||||
/* Don't do hdaps polls until resume re-initializes the sensor. */
|
||||
- del_timer_sync(&hdaps_timer);
|
||||
+ timer_delete_sync(&hdaps_timer);
|
||||
hdaps_device_shutdown(); /* ignore errors, effect is negligible */
|
||||
return 0;
|
||||
}
|
||||
@@ -671,7 +671,7 @@
|
||||
{
|
||||
mutex_lock(&hdaps_users_mtx);
|
||||
if (--hdaps_users == 0) /* no input users left */
|
||||
- del_timer_sync(&hdaps_timer);
|
||||
+ timer_delete_sync(&hdaps_timer);
|
||||
mutex_unlock(&hdaps_users_mtx);
|
||||
|
||||
module_put(THIS_MODULE);
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 10:35:43 UTC 2025 - Axel Braun <axel.braun@gmx.de>
|
||||
|
||||
- del_timer.patch added to fix deprecated call
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 15:42:08 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package tp_smapi
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -25,6 +25,7 @@ Group: System/Kernel
|
||||
URL: https://github.com/linux-thinkpad/tp_smapi
|
||||
Source: tp_smapi-%{version}.tar.gz
|
||||
Patch0: kernel_64.diff
|
||||
Patch1: del_timer.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %kernel_module_package_buildreqs
|
||||
BuildRequires: kernel-source
|
||||
|
||||
Reference in New Issue
Block a user