diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-27 20:25:43 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:25 -0700 |
commit | 77491e524ccb78adfad9cdc1b0b175c4e9fd0368 (patch) | |
tree | 476119fd653107d78f2c5a546529aa3093b902fe /drivers/staging/line6/toneport.c | |
parent | 7e60fcb54f32e30f065a77b30f03370a287fda99 (diff) |
Staging: line6: remove DEVICE_ATTRIBUTE
As the code is in the kernel tree, it's no longer needed.
Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/toneport.c')
-rw-r--r-- | drivers/staging/line6/toneport.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/staging/line6/toneport.c b/drivers/staging/line6/toneport.c index c9fe07feab6..041b2c8d143 100644 --- a/drivers/staging/line6/toneport.c +++ b/drivers/staging/line6/toneport.c @@ -91,13 +91,17 @@ static void toneport_update_led(struct device *dev) { (line6 = &tp->line6)) toneport_send_cmd(line6->usbdev, (led_red<<8)|0x0002, led_green); // for setting the LED on Guitarport } -static ssize_t toneport_set_led_red(struct device *dev, DEVICE_ATTRIBUTE const char *buf, size_t count) { +static ssize_t toneport_set_led_red(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) { char* c; led_red = simple_strtol(buf, &c, 10); toneport_update_led(dev); return count; } -static ssize_t toneport_set_led_green(struct device *dev, DEVICE_ATTRIBUTE const char *buf, size_t count) { +static ssize_t toneport_set_led_green(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) { char* c; led_green = simple_strtol(buf, &c, 10); toneport_update_led(dev); |