Commit dfcce7bf authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

staging/easycap: easycap_usb_probe: more indentation cleanups

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b4a5916e
...@@ -3476,7 +3476,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -3476,7 +3476,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
container_of(pv4l2_device, struct easycap, v4l2_device); container_of(pv4l2_device, struct easycap, v4l2_device);
} }
#endif /*EASYCAP_IS_VIDEODEV_CLIENT*/ #endif /*EASYCAP_IS_VIDEODEV_CLIENT*/
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
if ((USB_CLASS_VIDEO == bInterfaceClass) || if ((USB_CLASS_VIDEO == bInterfaceClass) ||
(USB_CLASS_VENDOR_SPEC == bInterfaceClass)) { (USB_CLASS_VENDOR_SPEC == bInterfaceClass)) {
...@@ -4085,7 +4085,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -4085,7 +4085,7 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
/*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ /*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
break; break;
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/* /*
* INTERFACE 1 IS THE AUDIO CONTROL INTERFACE * INTERFACE 1 IS THE AUDIO CONTROL INTERFACE
...@@ -4377,10 +4377,10 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -4377,10 +4377,10 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
err("easycap_alsa_probe() returned %i\n", rc); err("easycap_alsa_probe() returned %i\n", rc);
return -ENODEV; return -ENODEV;
} else { } else {
JOM(8, "kref_get() with %i=peasycap->kref.refcount.counter\n", JOM(8, "kref_get() with %i=kref.refcount.counter\n",
(int)peasycap->kref.refcount.counter); peasycap->kref.refcount.counter);
kref_get(&peasycap->kref); kref_get(&peasycap->kref);
(peasycap->registered_audio)++; peasycap->registered_audio++;
} }
#else /* CONFIG_EASYCAP_OSS */ #else /* CONFIG_EASYCAP_OSS */
...@@ -4390,31 +4390,25 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface, ...@@ -4390,31 +4390,25 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
usb_set_intfdata(pusb_interface, NULL); usb_set_intfdata(pusb_interface, NULL);
return -ENODEV; return -ENODEV;
} else { } else {
JOM(8, "kref_get() with %i=peasycap->kref.refcount.counter\n", JOM(8, "kref_get() with %i=kref.refcount.counter\n",
(int)peasycap->kref.refcount.counter); peasycap->kref.refcount.counter);
kref_get(&peasycap->kref); kref_get(&peasycap->kref);
(peasycap->registered_audio)++; peasycap->registered_audio++;
} }
/*---------------------------------------------------------------------------*/
/*
* LET THE USER KNOW WHAT NODE THE AUDIO DEVICE IS ATTACHED TO.
*/
/*---------------------------------------------------------------------------*/
SAM("easyoss attached to minor #%d\n", pusb_interface->minor); SAM("easyoss attached to minor #%d\n", pusb_interface->minor);
#endif /* CONFIG_EASYCAP_OSS */ #endif /* CONFIG_EASYCAP_OSS */
break; break;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* /*
* INTERFACES OTHER THAN 0, 1 AND 2 ARE UNEXPECTED * INTERFACES OTHER THAN 0, 1 AND 2 ARE UNEXPECTED
*/ */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
default: { default:
JOM(4, "ERROR: unexpected interface %i\n", bInterfaceNumber); JOM(4, "ERROR: unexpected interface %i\n", bInterfaceNumber);
return -EINVAL; return -EINVAL;
} }
}
SAM("ends successfully for interface %i\n", bInterfaceNumber); SAM("ends successfully for interface %i\n", bInterfaceNumber);
return 0; return 0;
} }
......
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