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

USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rahul Bedarkar and committed by
Greg Kroah-Hartman
a7737e34 48651317

+14 -8
+10 -5
drivers/usb/wusbcore/wusbhc.c
··· 55 55 * value of trust_timeout is jiffies. 56 56 */ 57 57 static ssize_t wusb_trust_timeout_show(struct device *dev, 58 - struct device_attribute *attr, char *buf) 58 + struct device_attribute *attr, 59 + char *buf) 59 60 { 60 61 struct wusbhc *wusbhc = usbhc_dev_to_wusbhc(dev); 61 62 ··· 174 173 wusbhc->phy_rate = phy_rate; 175 174 return size; 176 175 } 177 - static DEVICE_ATTR(wusb_phy_rate, 0644, wusb_phy_rate_show, wusb_phy_rate_store); 176 + static DEVICE_ATTR(wusb_phy_rate, 0644, wusb_phy_rate_show, 177 + wusb_phy_rate_store); 178 178 179 179 static ssize_t wusb_dnts_show(struct device *dev, 180 180 struct device_attribute *attr, ··· 229 227 if (result != 1) 230 228 return -EINVAL; 231 229 232 - wusbhc->retry_count = max_t(uint8_t, retry_count, WUSB_RETRY_COUNT_MAX); 230 + wusbhc->retry_count = max_t(uint8_t, retry_count, 231 + WUSB_RETRY_COUNT_MAX); 233 232 234 233 return size; 235 234 } ··· 324 321 325 322 result = sysfs_create_group(wusbhc_kobj(wusbhc), &wusbhc_attr_group); 326 323 if (result < 0) { 327 - dev_err(dev, "Cannot register WUSBHC attributes: %d\n", result); 324 + dev_err(dev, "Cannot register WUSBHC attributes: %d\n", 325 + result); 328 326 goto error_create_attr_group; 329 327 } 330 328 ··· 429 425 */ 430 426 void wusbhc_giveback_urb(struct wusbhc *wusbhc, struct urb *urb, int status) 431 427 { 432 - struct wusb_dev *wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev); 428 + struct wusb_dev *wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, 429 + urb->dev); 433 430 434 431 if (status == 0 && wusb_dev) { 435 432 wusb_dev->entry_ts = jiffies;
+4 -3
drivers/usb/wusbcore/wusbhc.h
··· 164 164 * functions/operations that only deal with general Wireless USB HC 165 165 * issues use this data type to refer to the host. 166 166 * 167 - * @usb_hcd Instantiation of a USB host controller 167 + * @usb_hcd Instantiation of a USB host controller 168 168 * (initialized by upper layer [HWA=HC or WHCI]. 169 169 * 170 170 * @dev Device that implements this; initialized by the ··· 196 196 * @ports_max Number of simultaneous device connections (fake 197 197 * ports) this HC will take. Read-only. 198 198 * 199 - * @port Array of port status for each fake root port. Guaranteed to 199 + * @port Array of port status for each fake root port. Guaranteed to 200 200 * always be the same length during device existence 201 201 * [this allows for some unlocked but referenced reading]. 202 202 * ··· 329 329 * This is a safe assumption as @usb_dev->bus is referenced all the 330 330 * time during the @usb_dev life cycle. 331 331 */ 332 - static inline struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) 332 + static inline 333 + struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) 333 334 { 334 335 struct usb_hcd *usb_hcd; 335 336 usb_hcd = container_of(usb_dev->bus, struct usb_hcd, self);