diff options
author | Graeme Gregory <dp@xora.org.uk> | 2007-11-10 15:55:53 +0000 |
---|---|---|
committer | Graeme Gregory <dp@xora.org.uk> | 2007-11-10 15:55:53 +0000 |
commit | f46445137b031f605491b39cbb43a7716a11ab30 (patch) | |
tree | 42f44f560998d0c68b90c08b6b19477ebfc7c639 /packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch | |
parent | 601498dea4d09a88926c3f6200e7618b4f4fdfef (diff) |
linux-openmoko_2.6.22.5.bb : update for kernel, gta02 sound support,
fixed suspend/resume while playing sound. fixed suspend/resume for
vibrator. Moved SCRREV onwards.
Diffstat (limited to 'packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch')
-rw-r--r-- | packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch b/packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch new file mode 100644 index 0000000000..a98f5c8ca5 --- /dev/null +++ b/packages/linux/linux-openmoko/gta-vibro-pwm-suspend.patch @@ -0,0 +1,27 @@ +Index: linux-2.6.22/drivers/leds/leds-gta01.c +=================================================================== +--- linux-2.6.22.orig/drivers/leds/leds-gta01.c 2007-11-09 16:27:03.000000000 +0000 ++++ linux-2.6.22/drivers/leds/leds-gta01.c 2007-11-09 16:27:13.000000000 +0000 +@@ -33,6 +33,8 @@ + struct s3c2410_pwm pwm; + }; + ++static int gta01vib_init_hw(struct gta01_vib_priv *vp); ++ + static inline struct gta01_vib_priv *pdev_to_vpriv(struct platform_device *dev) + { + return platform_get_drvdata(dev); +@@ -80,7 +82,13 @@ + + static int gta01vib_resume(struct platform_device *dev) + { ++ struct gta01_vib_priv *vp = pdev_to_vpriv(dev); ++ + led_classdev_resume(>a01_vib_led); ++ ++ if (vp->has_pwm) ++ gta01vib_init_hw(vp); ++ + return 0; + } + #endif |