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/midi.c | |
parent | 7e60fcb54f32e30f065a77b30f03370a287fda99 (diff) | |
download | linux-77491e524ccb78adfad9cdc1b0b175c4e9fd0368.tar.gz linux-77491e524ccb78adfad9cdc1b0b175c4e9fd0368.tar.bz2 linux-77491e524ccb78adfad9cdc1b0b175c4e9fd0368.zip |
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/midi.c')
-rw-r--r-- | drivers/staging/line6/midi.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index 74489ee77bff..b6fea1670f94 100644 --- a/drivers/staging/line6/midi.c +++ b/drivers/staging/line6/midi.c @@ -287,7 +287,9 @@ static int snd_line6_new_midi(struct snd_line6_midi *line6midi) /* "read" request on "midi_mask_transmit" special file. */ -static ssize_t midi_get_midi_mask_transmit(struct device *dev, DEVICE_ATTRIBUTE char *buf) +static ssize_t midi_get_midi_mask_transmit(struct device *dev, + struct device_attribute *attr, + char *buf) { struct usb_interface *interface = to_usb_interface(dev); struct usb_line6 *line6 = usb_get_intfdata(interface); @@ -297,7 +299,9 @@ static ssize_t midi_get_midi_mask_transmit(struct device *dev, DEVICE_ATTRIBUTE /* "write" request on "midi_mask" special file. */ -static ssize_t midi_set_midi_mask_transmit(struct device *dev, DEVICE_ATTRIBUTE const char *buf, size_t count) +static ssize_t midi_set_midi_mask_transmit(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) { struct usb_interface *interface = to_usb_interface(dev); struct usb_line6 *line6 = usb_get_intfdata(interface); @@ -309,7 +313,9 @@ static ssize_t midi_set_midi_mask_transmit(struct device *dev, DEVICE_ATTRIBUTE /* "read" request on "midi_mask_receive" special file. */ -static ssize_t midi_get_midi_mask_receive(struct device *dev, DEVICE_ATTRIBUTE char *buf) +static ssize_t midi_get_midi_mask_receive(struct device *dev, + struct device_attribute *attr, + char *buf) { struct usb_interface *interface = to_usb_interface(dev); struct usb_line6 *line6 = usb_get_intfdata(interface); @@ -319,7 +325,9 @@ static ssize_t midi_get_midi_mask_receive(struct device *dev, DEVICE_ATTRIBUTE c /* "write" request on "midi_mask" special file. */ -static ssize_t midi_set_midi_mask_receive(struct device *dev, DEVICE_ATTRIBUTE const char *buf, size_t count) +static ssize_t midi_set_midi_mask_receive(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) { struct usb_interface *interface = to_usb_interface(dev); struct usb_line6 *line6 = usb_get_intfdata(interface); |