Skip to content

Commit

Permalink
usbsdmux: fix typos found by codespell
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Göhrs <[email protected]>
  • Loading branch information
hnez committed Apr 29, 2024
1 parent 97aae4d commit d36ec67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions usbsdmux/usb2642.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _call_IOCTL(self, command, sg_dxfer, databuffer):
command -- SCSI Command payload to send. 16-Byte buffer containing the SCSI
command parameters.
sg_dxfer -- _SG_DXFER_*: Direction of the SCSI transfer
databuffer -- 512 byte long buffer to be written oder read
databuffer -- 512 byte long buffer to be written or read
"""
sgio, sense = self._get_SGIO(command, sg_dxfer, databuffer)
# print("SGIO:")
Expand Down Expand Up @@ -390,7 +390,7 @@ def write_read_to(self, i2cAddr, writeData, readLength):
* writeData[1]
* ...
* I2C-Repeated Start
* I2C-Slave address wit R/W = R (1)
* I2C-Slave address with R/W = R (1)
* readData[0]
* readData[1]
* ...
Expand Down
2 changes: 1 addition & 1 deletion usbsdmux/usb2642eeprom.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class _EepromStruct(ctypes.Structure):
("LUN_PWR_LB", ctypes.c_uint8), # 0xA4 LUN Power Lo byte
("LUN_PWR_HB", ctypes.c_uint8), # 0xA5 LUN Power Hi byte
("reserved1", ctypes.c_uint8 * (0xBF - 0xA6)), # 0xA6 .. 0xBE reserved
("DEV3_ID_STR", ctypes.c_uint8 * (0xC6 - 0xBF)), # 0xBF .. 0xC5 Card Reader Identifyer String
("DEV3_ID_STR", ctypes.c_uint8 * (0xC6 - 0xBF)), # 0xBF .. 0xC5 Card Reader Identifier String
("INQ_VEN_STR", ctypes.c_uint8 * (0xCE - 0xC6)), # 0xC6 .. 0xCD Inquiry Vendor String
("INQ_PRD_STR", ctypes.c_uint8 * (0xD3 - 0xCE)), # 0xCE .. 0xD2 48QFN Inquiry Product String
("DYN_NUM_LUN", ctypes.c_uint8), # 0xD3 Dynamic Number of LUNs
Expand Down

0 comments on commit d36ec67

Please sign in to comment.