Commit 52c5505a authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Greg Kroah-Hartman

staging: line6: drop variax guitar sysfs attr

Signed-off-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d46e7c21
...@@ -250,11 +250,6 @@ void line6_variax_process_message(struct usb_line6_variax *variax) ...@@ -250,11 +250,6 @@ void line6_variax_process_message(struct usb_line6_variax *variax)
sizeof(variax_request_bank) - 2) == 0) { sizeof(variax_request_bank) - 2) == 0) {
line6_dump_finished(&variax->dumpreq); line6_dump_finished(&variax->dumpreq);
variax_startup6(variax); variax_startup6(variax);
} else if (memcmp(buf + 1, variax_init_model + 1,
sizeof(variax_init_model) - 1) == 0) {
memcpy(variax->guitar,
buf + sizeof(variax_init_model),
sizeof(variax->guitar));
} else if (memcmp(buf + 1, variax_init_version + 1, } else if (memcmp(buf + 1, variax_init_version + 1,
sizeof(variax_init_version) - 1) == 0) { sizeof(variax_init_version) - 1) == 0) {
variax_startup3(variax); variax_startup3(variax);
...@@ -275,17 +270,6 @@ void line6_variax_process_message(struct usb_line6_variax *variax) ...@@ -275,17 +270,6 @@ void line6_variax_process_message(struct usb_line6_variax *variax)
} }
} }
/*
"read" request on "guitar" special file.
*/
static ssize_t variax_get_guitar(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
return sprintf(buf, "%s\n", variax->guitar);
}
#ifdef CONFIG_LINE6_USB_RAW #ifdef CONFIG_LINE6_USB_RAW
static char *variax_alloc_sysex_buffer(struct usb_line6_variax *variax, static char *variax_alloc_sysex_buffer(struct usb_line6_variax *variax,
...@@ -333,9 +317,6 @@ static ssize_t variax_set_raw2(struct device *dev, ...@@ -333,9 +317,6 @@ static ssize_t variax_set_raw2(struct device *dev,
#endif #endif
/* Variax workbench special files: */
static DEVICE_ATTR(guitar, S_IRUGO, variax_get_guitar, line6_nop_write);
#ifdef CONFIG_LINE6_USB_RAW #ifdef CONFIG_LINE6_USB_RAW
static DEVICE_ATTR(raw, S_IWUSR, line6_nop_read, line6_set_raw); static DEVICE_ATTR(raw, S_IWUSR, line6_nop_read, line6_set_raw);
static DEVICE_ATTR(raw2, S_IWUSR, line6_nop_read, variax_set_raw2); static DEVICE_ATTR(raw2, S_IWUSR, line6_nop_read, variax_set_raw2);
...@@ -369,8 +350,6 @@ static void variax_destruct(struct usb_interface *interface) ...@@ -369,8 +350,6 @@ static void variax_destruct(struct usb_interface *interface)
*/ */
static int variax_create_files2(struct device *dev) static int variax_create_files2(struct device *dev)
{ {
int err;
CHECK_RETURN(device_create_file(dev, &dev_attr_guitar));
#ifdef CONFIG_LINE6_USB_RAW #ifdef CONFIG_LINE6_USB_RAW
CHECK_RETURN(device_create_file(dev, &dev_attr_raw)); CHECK_RETURN(device_create_file(dev, &dev_attr_raw));
CHECK_RETURN(device_create_file(dev, &dev_attr_raw2)); CHECK_RETURN(device_create_file(dev, &dev_attr_raw2));
...@@ -469,7 +448,6 @@ void line6_variax_disconnect(struct usb_interface *interface) ...@@ -469,7 +448,6 @@ void line6_variax_disconnect(struct usb_interface *interface)
if (dev != NULL) { if (dev != NULL) {
/* remove sysfs entries: */ /* remove sysfs entries: */
line6_variax_remove_files(0, 0, dev); line6_variax_remove_files(0, 0, dev);
device_remove_file(dev, &dev_attr_guitar);
#ifdef CONFIG_LINE6_USB_RAW #ifdef CONFIG_LINE6_USB_RAW
device_remove_file(dev, &dev_attr_raw); device_remove_file(dev, &dev_attr_raw);
device_remove_file(dev, &dev_attr_raw2); device_remove_file(dev, &dev_attr_raw2);
......
...@@ -82,11 +82,6 @@ struct usb_line6_variax { ...@@ -82,11 +82,6 @@ struct usb_line6_variax {
*/ */
struct variax_model model_data; struct variax_model model_data;
/**
Name of connected guitar.
*/
unsigned char guitar[18];
/** /**
Handler for device initializaton. Handler for device initializaton.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment