Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: atm: fixed spacing and indentation coding style issues

Fixed spacing and indentation coding style issues.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Nicolas Kaiser and committed by
Greg Kroah-Hartman
16f76a76 87eb1bea

+16 -16
+11 -11
drivers/usb/atm/usbatm.h
··· 48 48 dev_warn(&(instance)->usb_intf->dev, \ 49 49 "failed assertion '%s' at line %d", \ 50 50 __stringify(x), __LINE__); \ 51 - } while(0) 51 + } while (0) 52 52 #endif 53 53 54 54 #define usb_err(instance, format, arg...) \ ··· 59 59 dev_warn(&(instance)->usb_intf->dev , format , ## arg) 60 60 #ifdef DEBUG 61 61 #define usb_dbg(instance, format, arg...) \ 62 - dev_printk(KERN_DEBUG , &(instance)->usb_intf->dev , format , ## arg) 62 + dev_printk(KERN_DEBUG , &(instance)->usb_intf->dev , format , ## arg) 63 63 #else 64 64 #define usb_dbg(instance, format, arg...) \ 65 65 do {} while (0) ··· 104 104 /* 105 105 * Assuming all methods exist and succeed, they are called in this order: 106 106 * 107 - * bind, heavy_init, atm_start, ..., atm_stop, unbind 107 + * bind, heavy_init, atm_start, ..., atm_stop, unbind 108 108 */ 109 109 110 110 struct usbatm_driver { 111 111 const char *driver_name; 112 112 113 113 /* init device ... can sleep, or cause probe() failure */ 114 - int (*bind) (struct usbatm_data *, struct usb_interface *, 114 + int (*bind) (struct usbatm_data *, struct usb_interface *, 115 115 const struct usb_device_id *id); 116 116 117 117 /* additional device initialization that is too slow to be done in probe() */ 118 - int (*heavy_init) (struct usbatm_data *, struct usb_interface *); 118 + int (*heavy_init) (struct usbatm_data *, struct usb_interface *); 119 119 120 120 /* cleanup device ... can sleep, but can't fail */ 121 - void (*unbind) (struct usbatm_data *, struct usb_interface *); 121 + void (*unbind) (struct usbatm_data *, struct usb_interface *); 122 122 123 123 /* init ATM device ... can sleep, or cause ATM initialization failure */ 124 124 int (*atm_start) (struct usbatm_data *, struct atm_dev *); ··· 126 126 /* cleanup ATM device ... can sleep, but can't fail */ 127 127 void (*atm_stop) (struct usbatm_data *, struct atm_dev *); 128 128 129 - int bulk_in; /* bulk rx endpoint */ 130 - int isoc_in; /* isochronous rx endpoint */ 131 - int bulk_out; /* bulk tx endpoint */ 129 + int bulk_in; /* bulk rx endpoint */ 130 + int isoc_in; /* isochronous rx endpoint */ 131 + int bulk_out; /* bulk tx endpoint */ 132 132 133 133 unsigned rx_padding; 134 134 unsigned tx_padding; ··· 156 156 struct usbatm_data { 157 157 /****************** 158 158 * public fields * 159 - ******************/ 159 + ******************/ 160 160 161 161 /* mini driver */ 162 162 struct usbatm_driver *driver; ··· 174 174 175 175 /******************************** 176 176 * private fields - do not use * 177 - ********************************/ 177 + ********************************/ 178 178 179 179 struct kref refcount; 180 180 struct mutex serialize;
+5 -5
drivers/usb/atm/xusbatm.c
··· 49 49 static struct usb_device_id xusbatm_usb_ids[XUSBATM_DRIVERS_MAX + 1]; 50 50 static struct usb_driver xusbatm_usb_driver; 51 51 52 - static struct usb_interface *xusbatm_find_intf (struct usb_device *usb_dev, int altsetting, u8 ep) 52 + static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) 53 53 { 54 54 struct usb_host_interface *alt; 55 55 struct usb_interface *intf; 56 56 int i, j; 57 57 58 - for(i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) 58 + for (i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) 59 59 if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting))) 60 60 for (j = 0; j < alt->desc.bNumEndpoints; j++) 61 61 if (alt->endpoint[j].desc.bEndpointAddress == ep) ··· 63 63 return NULL; 64 64 } 65 65 66 - static int xusbatm_capture_intf (struct usbatm_data *usbatm, struct usb_device *usb_dev, 66 + static int xusbatm_capture_intf(struct usbatm_data *usbatm, struct usb_device *usb_dev, 67 67 struct usb_interface *intf, int altsetting, int claim) 68 68 { 69 69 int ifnum = intf->altsetting->desc.bInterfaceNumber; ··· 80 80 return 0; 81 81 } 82 82 83 - static void xusbatm_release_intf (struct usb_device *usb_dev, struct usb_interface *intf, int claimed) 83 + static void xusbatm_release_intf(struct usb_device *usb_dev, struct usb_interface *intf, int claimed) 84 84 { 85 85 if (claimed) { 86 86 usb_set_intfdata(intf, NULL); ··· 147 147 148 148 usb_dbg(usbatm, "%s entered\n", __func__); 149 149 150 - for(i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) { 150 + for (i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) { 151 151 struct usb_interface *cur_intf = usb_dev->actconfig->interface[i]; 152 152 153 153 if (cur_intf && (usb_get_intfdata(cur_intf) == usbatm)) {