hid-mcp2221.c (ea68a3e9d14e9e0bf017d178fb4bd53b6deb1482) | hid-mcp2221.c (e36c31f8cac54d6d900d270078d6b33de74e1b0a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * MCP2221A - Microchip USB to I2C Host Protocol Bridge 4 * 5 * Copyright (c) 2020, Rishi Gupta <gupt21@gmail.com> 6 * 7 * Datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/20005565B.pdf 8 */ --- 65 unchanged lines hidden (view full) --- 74 } gpio[MCP_NGPIO]; 75} __packed; 76 77/* MCP GPIO get command layout */ 78struct mcp_get_gpio { 79 u8 cmd; 80 u8 dummy; 81 struct { | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * MCP2221A - Microchip USB to I2C Host Protocol Bridge 4 * 5 * Copyright (c) 2020, Rishi Gupta <gupt21@gmail.com> 6 * 7 * Datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/20005565B.pdf 8 */ --- 65 unchanged lines hidden (view full) --- 74 } gpio[MCP_NGPIO]; 75} __packed; 76 77/* MCP GPIO get command layout */ 78struct mcp_get_gpio { 79 u8 cmd; 80 u8 dummy; 81 struct { |
82 u8 direction; | |
83 u8 value; | 82 u8 value; |
83 u8 direction; |
|
84 } gpio[MCP_NGPIO]; 85} __packed; 86 87/* 88 * There is no way to distinguish responses. Therefore next command 89 * is sent only after response to previous has been received. Mutex 90 * lock is used for this purpose mainly. 91 */ --- 1125 unchanged lines hidden --- | 84 } gpio[MCP_NGPIO]; 85} __packed; 86 87/* 88 * There is no way to distinguish responses. Therefore next command 89 * is sent only after response to previous has been received. Mutex 90 * lock is used for this purpose mainly. 91 */ --- 1125 unchanged lines hidden --- |