Skip to content

Commit

Permalink
usb: gadget: Fix inconsistent indent
Browse files Browse the repository at this point in the history
Remove whitespace and use tab as indent

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
Link: https://lore.kernel.org/r/20210801055454.53015-1-jj251510319013@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wei Ming Chen authored and Greg Kroah-Hartman committed Aug 5, 2021
1 parent 64cd427 commit 9311a53
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions drivers/usb/gadget/configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct gadget_info {

static inline struct gadget_info *to_gadget_info(struct config_item *item)
{
return container_of(to_config_group(item), struct gadget_info, group);
return container_of(to_config_group(item), struct gadget_info, group);
}

struct config_usb_cfg {
Expand Down Expand Up @@ -365,21 +365,21 @@ static struct configfs_attribute *gadget_root_attrs[] = {

static inline struct gadget_strings *to_gadget_strings(struct config_item *item)
{
return container_of(to_config_group(item), struct gadget_strings,
return container_of(to_config_group(item), struct gadget_strings,
group);
}

static inline struct gadget_config_name *to_gadget_config_name(
struct config_item *item)
{
return container_of(to_config_group(item), struct gadget_config_name,
return container_of(to_config_group(item), struct gadget_config_name,
group);
}

static inline struct usb_function_instance *to_usb_function_instance(
struct config_item *item)
{
return container_of(to_config_group(item),
return container_of(to_config_group(item),
struct usb_function_instance, group);
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ static int __must_check ffs_do_single_desc(char *data, unsigned len,
break;

case USB_TYPE_CLASS | 0x01:
if (*current_class == USB_INTERFACE_CLASS_HID) {
if (*current_class == USB_INTERFACE_CLASS_HID) {
pr_vdebug("hid descriptor\n");
if (length != sizeof(struct hid_descriptor))
goto inv_length;
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/gadget/legacy/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,8 +1214,8 @@ dev_release (struct inode *inode, struct file *fd)
static __poll_t
ep0_poll (struct file *fd, poll_table *wait)
{
struct dev_data *dev = fd->private_data;
__poll_t mask = 0;
struct dev_data *dev = fd->private_data;
__poll_t mask = 0;

if (dev->state <= STATE_DEV_OPENED)
return DEFAULT_POLLMASK;
Expand Down

0 comments on commit 9311a53

Please sign in to comment.