Oliver Neukum | 1 Jul 08:04

[patch]suspend/resume for yealink driver

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)


Gmane