1 Jul 08:04
[patch]suspend/resume for yealink driver
From: Oliver Neukum <oliver <at> neukum.org>
Subject: [patch]suspend/resume for yealink driver
Newsgroups: gmane.linux.kernel.input, gmane.linux.usb.general
Date: 2008-07-01 06:08:51 GMT
Subject: [patch]suspend/resume for yealink driver
Newsgroups: gmane.linux.kernel.input, gmane.linux.usb.general
Date: 2008-07-01 06:08:51 GMT
Hi,
this patch implements suspend/resume for yealink.
Regards
Oliver
Signed-off-by: Oliver Neukum <oneukum <at> suse.de>
Tested-by: Thomas Reitmayr <treitmayr <at> devbase.at>
---
--- linux-2.6.26-sierra/drivers/input/misc/yealink.alt2.c 2008-06-30 14:13:58.000000000 +0200
+++ linux-2.6.26-sierra/drivers/input/misc/yealink.c 2008-06-30 16:02:30.000000000 +0200
@@ -120,6 +120,7 @@ struct yealink_dev {
u8 lcdMap[ARRAY_SIZE(lcdMap)]; /* state of LCD, LED ... */
int key_code; /* last reported key */
int shutdown:1;
+ int open:1;
int stat_ix;
union {
@@ -128,6 +129,7 @@ struct yealink_dev {
} master, copy;
};
+static DECLARE_RWSEM(sysfs_rwsema);
/*******************************************************************************
* Yealink lcd interface
(Continue reading)
RSS Feed