Mailinglist Archive: opensuse-kernel (25 mails)

< Previous Next >
Re: [opensuse-kernel] Kernel module creation for >=11.1
  • From: Ruediger Oertel <ro@xxxxxxx>
  • Date: Thu, 13 Nov 2008 02:45:52 +0100
  • Message-id: <200811130245.52908.ro@xxxxxxx>
On Thursday 13 November 2008 00:46:06 Greg KH wrote:
[edited]

https://build.opensuse.org/package/show?package=asus_acpi&project=home%3Aappleonkel%3AEEE

much with the original module except for the name and basic
infrastructure.
1459 asus_acpi.c (from kernel)
1907 asus_acpi.c (hacked up for eeecp)
diff: 675 lines ...

So maybe it actually works properly? :)

Context is needed as to what is missing in the in-kernel driver to
require an external one.
the patched driver removes the support for the device the original driver was
written for and adds the support for the eeepc, for example:

+#define EEEPC_HOTK_HID "ASUS010"
[...]
+static const struct acpi_device_id eee_device_ids[] = {
+ {EEEPC_HOTK_HID, 0},
+ {"", 0}
+};
[...]
-static const struct acpi_device_id asus_device_ids[] = {
- {"ATK0100", 0},
- {"", 0},
-};
[...]
static struct acpi_driver asus_hotk_driver = {
.name = "asus_acpi",
.class = ACPI_HOTK_CLASS,
- .ids = asus_device_ids,
+ .ids = eee_device_ids,
.ops = {


--
with kind regards (mit freundlichem Grinsen),
Ruediger Oertel (ro@xxxxxxxxxx,ro@xxxxxxx,bugfinder@xxxxxxxxxxx)
----------------------------------------------------------------------
Linux MacBookRudi 2.6.27.5-1-default #1 SMP 2008-11-08 04:59:08 +0100 x86_64
Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

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

< Previous Next >
Follow Ups