Mailinglist Archive: opensuse-commit (1083 mails)

< Previous Next >
commit pcc-acpi
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Tue, 11 Sep 2007 18:33:20 +0200
  • Message-id: <20070911163321.304716781B8@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package pcc-acpi
checked in at Tue Sep 11 18:33:20 CEST 2007.

--------
--- arch/i386/pcc-acpi/pcc-acpi.changes 2007-06-13 18:48:31.000000000 +0200
+++ /mounts/work_src_done/STABLE/pcc-acpi/pcc-acpi.changes      2007-09-06 13:51:38.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Sep  6 13:51:04 CEST 2007 - tuxbox@xxxxxxx
+
+- fixed acpi device id registration to new autoloading framework
+  and adapted resume function to new api
+
+-------------------------------------------------------------------

New:
----
  fseidel_fix_newacpidevmanagement.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pcc-acpi.spec ++++++
--- /var/tmp/diff_new_pack.V16553/_old  2007-09-11 18:32:55.000000000 +0200
+++ /var/tmp/diff_new_pack.V16553/_new  2007-09-11 18:32:55.000000000 +0200
@@ -15,14 +15,15 @@
 BuildRequires:  kernel-source kernel-syms module-init-tools
 Summary:        Panasonic Hotkey Driver
 Version:        0.9
-Release:        1
+Release:        2
 Group:          System/Kernel
-License:        GNU General Public License (GPL)
+License:        GPL v2 or later
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 URL:            http://www.da-cha.jp/letsnote
 Autoreqprov:    on
 Source:         %{name}-%{version}.tar.bz2
 Patch0:         pcc-acpi-0.9-add-missing-input-unregister-device.diff
+Patch1:         fseidel_fix_newacpidevmanagement.patch
 Source100:      preamble
 ExclusiveArch: %ix86 x86_64
 %suse_kernel_module_package -n pcc-acpi -p %_sourcedir/preamble um
@@ -40,7 +41,7 @@
 
 %package -n pcc-acpi-KMP
 Group:          System/Kernel
-License:        GNU General Public License (GPL)
+License:        GPL v2 or later
 Summary:        Panasonic Hotkey Driver
 
 %description -n pcc-acpi-KMP
@@ -56,7 +57,8 @@
 
 %prep
 %setup
-%patch
+%patch0
+%patch1 -p1
 
 %build
 for flavor in %flavors_to_build; do
@@ -79,5 +81,8 @@
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Sep 06 2007 - tuxbox@xxxxxxx
+- fixed acpi device id registration to new autoloading framework
+  and adapted resume function to new api
 * Wed Jun 13 2007 - seife@xxxxxxx
 - initial submission

++++++ fseidel_fix_newacpidevmanagement.patch ++++++
---
 pcc_acpi.c |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

--- a/pcc_acpi.c
+++ b/pcc_acpi.c
@@ -168,7 +168,6 @@ MODULE_LICENSE("GPL");
 #define METHOD_HKEY_SQTY       "SQTY"
 #define METHOD_HKEY_SINF       "SINF"
 #define METHOD_HKEY_SSET       "SSET"
-#define HKEY_HID               "MAT0012,MAT0013,MAT0018,MAT0019"
 #define HKEY_NOTIFY             0x80
 
 /* for brightness control */
@@ -212,13 +211,21 @@ enum SINF_BITS { SINF_NUM_BATTERIES = 0,
 
 static int acpi_pcc_hotkey_add(struct acpi_device *device);
 static int acpi_pcc_hotkey_remove(struct acpi_device *device, int type);
-static int acpi_pcc_hotkey_resume(struct acpi_device *device, int state);
+static int acpi_pcc_hotkey_resume(struct acpi_device *device);
 
+static const struct acpi_device_id pcc_device_ids[] = {
+       {"MAT0012", 0},
+       {"MAT0013", 0},
+       {"MAT0018", 0},
+       {"MAT0019", 0},
+       {"", 0},
+};
+MODULE_DEVICE_TABLE(acpi, pcc_device_ids);
 
 static struct acpi_driver acpi_pcc_driver = {
        .name =         ACPI_PCC_DRIVER_NAME,
        .class =        ACPI_PCC_CLASS,
-       .ids =          HKEY_HID,
+       .ids =          pcc_device_ids,
        .ops =          {
                                .add =          acpi_pcc_hotkey_add,
                                .remove =       acpi_pcc_hotkey_remove,
@@ -834,7 +841,7 @@ static int acpi_pcc_init_input(struct ac
                          module init
    -------------------------------------------------------------------------- */
 
-static int acpi_pcc_hotkey_resume(struct acpi_device *device, int state)
+static int acpi_pcc_hotkey_resume(struct acpi_device *device)
 {
        struct acpi_hotkey *hotkey = acpi_driver_data(device);
        acpi_status         status = AE_OK;


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages