From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH] eeepc-wmi: fix function return type to kill warning Date: Tue, 14 Dec 2010 16:26:46 -0800 Message-ID: <20101214162646.5dd1c0de.randy.dunlap@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: acpi4asus-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: lkml , acpi4asus-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: akpm , Matthew Garrett List-Id: platform-driver-x86.vger.kernel.org From: Randy Dunlap Fix return type warning: drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type Signed-off-by: Randy Dunlap --- 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; ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d