gs_usb: update comment about struct gs_device_config::byte_order

Fixes: bbe39cad2ea8 ("usbd_gs_can: remove unused USBD_GS_CAN_HandleTypeDef::host_config")
This commit is contained in:
Marc Kleine-Budde 2022-11-11 15:54:36 +01:00
parent 84a397731b
commit 048288042f

View File

@ -208,11 +208,16 @@ enum gs_can_termination_state {
struct gs_host_config {
u32 byte_order;
} __packed;
/* All data exchanged between host and device is exchanged in host byte order,
* thanks to the struct gs_host_config byte_order member, which is sent first
* to indicate the desired byte order.
*/
/* The firmware on the original USB2CAN by Geschwister Schneider
* Technologie Entwicklungs- und Vertriebs UG exchanges all data
* between the host and the device in host byte order. This is done
* with the struct gs_host_config::byte_order member, which is sent
* first to indicate the desired byte order.
*
* The widely used open source firmware candleLight doesn't support
* this feature and exchanges the data in little endian byte order.
*/
struct gs_device_config {
u8 reserved1;
u8 reserved2;