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

usb: fix spelling mistakes in header files

Fix some spelling mistakes in comments:
trasfer ==> transfer
consumtion ==> consumption
endoint ==> endpoint
sharable ==> shareable
contraints ==> constraints
Auxilary ==> Auxiliary
correspondig ==> corresponding
interupt ==> interrupt
inifinite ==> infinite
assignement ==> assignment

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210517094020.7310-1-thunder.leizhen@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhen Lei and committed by
Greg Kroah-Hartman
24bb0076 ddaf0d6d

+12 -12
+1 -1
include/linux/usb.h
··· 1485 1485 * 1486 1486 * Note that transfer_buffer must still be set if the controller 1487 1487 * does not support DMA (as indicated by hcd_uses_dma()) and when talking 1488 - * to root hub. If you have to trasfer between highmem zone and the device 1488 + * to root hub. If you have to transfer between highmem zone and the device 1489 1489 * on such controller, create a bounce buffer or bail out with an error. 1490 1490 * If transfer_buffer cannot be set (is in highmem) and the controller is DMA 1491 1491 * capable, assign NULL to it, so that usbmon knows not to use the value.
+1 -1
include/linux/usb/composite.h
··· 271 271 * @bConfigurationValue: Copied into configuration descriptor. 272 272 * @iConfiguration: Copied into configuration descriptor. 273 273 * @bmAttributes: Copied into configuration descriptor. 274 - * @MaxPower: Power consumtion in mA. Used to compute bMaxPower in the 274 + * @MaxPower: Power consumption in mA. Used to compute bMaxPower in the 275 275 * configuration descriptor after considering the bus speed. 276 276 * @cdev: assigned by @usb_add_config() before calling @bind(); this is 277 277 * the device associated with this configuration.
+1 -1
include/linux/usb/gadget.h
··· 197 197 * @name:identifier for the endpoint, such as "ep-a" or "ep9in-bulk" 198 198 * @ops: Function pointers used to access hardware-specific operations. 199 199 * @ep_list:the gadget's ep_list holds all of its endpoints 200 - * @caps:The structure describing types and directions supported by endoint. 200 + * @caps:The structure describing types and directions supported by endpoint. 201 201 * @enabled: The current endpoint enabled/disabled state. 202 202 * @claimed: True if this endpoint is claimed by a function. 203 203 * @maxpacket:The maximum packet size used on this endpoint. The initial
+2 -2
include/linux/usb/hcd.h
··· 59 59 * USB Host Controller Driver (usb_hcd) framework 60 60 * 61 61 * Since "struct usb_bus" is so thin, you can't share much code in it. 62 - * This framework is a layer over that, and should be more sharable. 62 + * This framework is a layer over that, and should be more shareable. 63 63 */ 64 64 65 65 /*-------------------------------------------------------------------------*/ ··· 299 299 * (optional) these hooks allow an HCD to override the default DMA 300 300 * mapping and unmapping routines. In general, they shouldn't be 301 301 * necessary unless the host controller has special DMA requirements, 302 - * such as alignment contraints. If these are not specified, the 302 + * such as alignment constraints. If these are not specified, the 303 303 * general usb_hcd_(un)?map_urb_for_dma functions will be used instead 304 304 * (and it may be a good idea to call these functions in your HCD 305 305 * implementation)
+3 -3
include/linux/usb/otg-fsm.h
··· 98 98 * @b_bus_req: TRUE during the time that the Application running on the 99 99 * B-device wants to use the bus 100 100 * 101 - * Auxilary inputs (OTG v1.3 only. Obsolete now.) 101 + * Auxiliary inputs (OTG v1.3 only. Obsolete now.) 102 102 * @a_sess_vld: TRUE if the A-device detects that VBUS is above VA_SESS_VLD 103 103 * @b_bus_suspend: TRUE when the A-device detects that the B-device has put 104 104 * the bus into suspend ··· 153 153 int a_bus_req; 154 154 int b_bus_req; 155 155 156 - /* Auxilary inputs */ 156 + /* Auxiliary inputs */ 157 157 int a_sess_vld; 158 158 int b_bus_resume; 159 159 int b_bus_suspend; ··· 177 177 int a_bus_req_inf; 178 178 int a_clr_err_inf; 179 179 int b_bus_req_inf; 180 - /* Auxilary informative variables */ 180 + /* Auxiliary informative variables */ 181 181 int a_suspend_req_inf; 182 182 183 183 /* Timeout indicator for timers */
+1 -1
include/linux/usb/otg.h
··· 125 125 * @dev: Pointer to the given device 126 126 * 127 127 * The function gets phy interface string from property 'dr_mode', 128 - * and returns the correspondig enum usb_dr_mode 128 + * and returns the corresponding enum usb_dr_mode 129 129 */ 130 130 extern enum usb_dr_mode usb_get_dr_mode(struct device *dev); 131 131
+1 -1
include/linux/usb/quirks.h
··· 32 32 #define USB_QUIRK_DELAY_INIT BIT(6) 33 33 34 34 /* 35 - * For high speed and super speed interupt endpoints, the USB 2.0 and 35 + * For high speed and super speed interrupt endpoints, the USB 2.0 and 36 36 * USB 3.0 spec require the interval in microframes 37 37 * (1 microframe = 125 microseconds) to be calculated as 38 38 * interval = 2 ^ (bInterval-1).
+1 -1
include/linux/usb/serial.h
··· 395 395 } 396 396 397 397 /* 398 - * Macro for reporting errors in write path to avoid inifinite loop 398 + * Macro for reporting errors in write path to avoid infinite loop 399 399 * when port is used as a console. 400 400 */ 401 401 #define dev_err_console(usport, fmt, ...) \
+1 -1
include/linux/usb/typec_dp.h
··· 97 97 #define DP_CONF_PIN_ASSIGNEMENT_SHIFT 8 98 98 #define DP_CONF_PIN_ASSIGNEMENT_MASK GENMASK(15, 8) 99 99 100 - /* Helper for setting/getting the pin assignement value to the configuration */ 100 + /* Helper for setting/getting the pin assignment value to the configuration */ 101 101 #define DP_CONF_SET_PIN_ASSIGN(_a_) ((_a_) << 8) 102 102 #define DP_CONF_GET_PIN_ASSIGN(_conf_) (((_conf_) & GENMASK(15, 8)) >> 8) 103 103