]> git.hungrycats.org Git - linux/commitdiff
sysfs: reinstate count parameter for PNP store() methods.
authorPatrick Mochel <mochel@osdl.org>
Mon, 13 Jan 2003 05:34:28 +0000 (23:34 -0600)
committerPatrick Mochel <mochel@osdl.org>
Mon, 13 Jan 2003 05:34:28 +0000 (23:34 -0600)
drivers/pnp/interface.c

index 7cce39ff52b1a09c51d36c170f3e157a8a213259..20c9557b7b4e28895b4d324d96b1a380877a1c6f 100644 (file)
@@ -284,7 +284,7 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf)
 }
 
 static ssize_t
-pnp_set_current_resources(struct device * dmdev, const char * buf)
+pnp_set_current_resources(struct device * dmdev, const char * buf, size_t count)
 {
        struct pnp_dev *dev = to_pnp_dev(dmdev);
        char    command[20];
@@ -326,7 +326,7 @@ pnp_set_current_resources(struct device * dmdev, const char * buf)
                goto done;
        }
  done:
-       return error < 0 ? error : strlen(buf);
+       return error < 0 ? error : count;
 }
 
 static DEVICE_ATTR(resources,S_IRUGO | S_IWUSR,