mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] eeepc-wmi: fix function return type to kill warning
@ 2010-12-15  0:26 Randy Dunlap
  2010-12-15  7:03 ` Corentin Chary
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2010-12-15  0:26 UTC (permalink / raw)
  To: lkml, acpi4asus-user, platform-driver-x86
  Cc: Corentin Chary, akpm, Matthew Garrett

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix return type warning:

drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/platform/x86/eeepc-wmi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-2637-rc4.orig/drivers/platform/x86/eeepc-wmi.c
+++ lnx-2637-rc4/drivers/platform/x86/eeepc-wmi.c
@@ -298,7 +298,7 @@ static void eeepc_wmi_notify(u32 value, 
 	kfree(obj);
 }
 
-static int store_cpufv(struct device *dev, struct device_attribute *attr,
+static ssize_t store_cpufv(struct device *dev, struct device_attribute *attr,
 		       const char *buf, size_t count)
 {
 	int value;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-15  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15  0:26 [PATCH] eeepc-wmi: fix function return type to kill warning Randy Dunlap
2010-12-15  7:03 ` Corentin Chary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®