Commit a59d8cc
usb: gadget: f_fs: pull out f->disable() from ffs_func_set_alt()
The ``alt`` parameter was used as a way to differentiate between
f->disable() and f->set_alt(). As the code paths diverge quite a bit,
pull out the f->disable() code from ffs_func_set_alt(), everything will
become clearer and less error prone. No change in functionality
intended.
Signed-off-by: Tudor Ambarus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 382b6ea commit a59d8cc
1 file changed
+22
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
3734 | | - | |
3735 | | - | |
3736 | | - | |
| 3734 | + | |
| 3735 | + | |
3737 | 3736 | | |
3738 | | - | |
3739 | | - | |
3740 | | - | |
3741 | | - | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
3742 | 3740 | | |
3743 | 3741 | | |
3744 | 3742 | | |
| |||
3753 | 3751 | | |
3754 | 3752 | | |
3755 | 3753 | | |
3756 | | - | |
3757 | | - | |
3758 | | - | |
3759 | | - | |
3760 | | - | |
3761 | | - | |
3762 | 3754 | | |
3763 | 3755 | | |
3764 | 3756 | | |
| |||
3770 | 3762 | | |
3771 | 3763 | | |
3772 | 3764 | | |
3773 | | - | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
| 3770 | + | |
| 3771 | + | |
| 3772 | + | |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
3774 | 3782 | | |
3775 | 3783 | | |
3776 | 3784 | | |
| |||
0 commit comments