浏览代码

eeepc-wmi: fix compiler warning

This fixes the following:

  CC [M]  drivers/platform/x86/eeepc-wmi.o
drivers/platform/x86/eeepc-wmi.c:322: warning: initialization from incompatible pointer type

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Dmitry Torokhov 14 年之前
父节点
当前提交
67fa38ec09
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/platform/x86/eeepc-wmi.c

+ 2 - 2
drivers/platform/x86/eeepc-wmi.c

@@ -298,8 +298,8 @@ static void eeepc_wmi_notify(u32 value, void *context)
 	kfree(obj);
 	kfree(obj);
 }
 }
 
 
-static int store_cpufv(struct device *dev, struct device_attribute *attr,
-		       const char *buf, size_t count)
+static ssize_t store_cpufv(struct device *dev, struct device_attribute *attr,
+			   const char *buf, size_t count)
 {
 {
 	int value;
 	int value;
 	struct acpi_buffer input = { (acpi_size)sizeof(value), &value };
 	struct acpi_buffer input = { (acpi_size)sizeof(value), &value };