Thread (2 messages) 2 messages, 2 authors, 2006-05-28

Re: [PATCH 3/5] au1100fb: Add power management support

From: Andrew Morton <hidden>
Date: 2006-05-28 06:17:10

On Sun, 28 May 2006 08:42:37 +0800
"Antonino A. Daplas" [off-list ref] wrote:
From: Rodolfo Giometti <redacted>

Add power management support.

 int au1100fb_drv_suspend(struct device *dev, pm_message_t state)
 {
-	/* TODO */
+	struct au1100fb_device *fbdev = (struct au1100fb_device*) dev_get_drvdata(dev);
 
 int au1100fb_drv_resume(struct device *dev)
 {
-	/* TODO */
+	struct au1100fb_device *fbdev = (struct au1100fb_device*) dev_get_drvdata(dev);
These typecasts of void* are unneeded.  They are in fact undesirable - if
someone were to change the type of dev_get_drvdata() to return some
non-pointer type then this code would still silently swallow it without
warning us of the bug.

Plus typecasts are ugly.


This patch doesn't apply, probably due to the earlier mangled one whihc I dropped.
Please redo and resend this one as well.



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help