]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fixed device_attribute for gpio-switch
authorTony Lindgren <tony@atomide.com>
Mon, 15 Aug 2005 11:26:31 +0000 (04:26 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Aug 2005 11:26:31 +0000 (04:26 -0700)
Fixed device_attribute for gpio-switch

arch/arm/plat-omap/gpio-switch.c

index 57a211c57ffa699723ee855eae380a47cd68454c..787e88d8ce49d5fece87b18ff160a6ffcd5e7c06 100644 (file)
@@ -80,7 +80,10 @@ static int gpio_sw_get_state(struct gpio_switch *sw)
        return state;
 }
 
-static ssize_t gpio_sw_store(struct device *dev, const char *buf, size_t count)
+static ssize_t gpio_sw_store(struct device *dev,
+                            struct device_attribute *attr,
+                            const char *buf,
+                            size_t count)
 {
        struct gpio_switch *sw = dev_get_drvdata(dev);
        int enable = (int)simple_strtoul(buf, NULL, 10);
@@ -89,7 +92,9 @@ static ssize_t gpio_sw_store(struct device *dev, const char *buf, size_t count)
 }
 
 #define gpio_sw_switch_attr(name)                                      \
-static ssize_t gpio_sw_show_##name(struct device *dev, char *buf)      \
+static ssize_t gpio_sw_show_##name(struct device *dev,                 \
+                                       struct device_attribute *attr,  \
+                                       char *buf)                      \
 {                                                                      \
        struct gpio_switch *sw = dev_get_drvdata(dev);                  \
        return sprintf(buf, "%s\n", name##_str[gpio_sw_get_state(sw)]); \