File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ struct mcp_get_gpio {
7979 u8 cmd ;
8080 u8 dummy ;
8181 struct {
82- u8 direction ;
8382 u8 value ;
83+ u8 direction ;
8484 } gpio [MCP_NGPIO ];
8585} __packed ;
8686
@@ -594,7 +594,7 @@ static int mcp_gpio_get(struct gpio_chip *gc,
594594
595595 mcp -> txbuf [0 ] = MCP2221_GPIO_GET ;
596596
597- mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]. value );
597+ mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]);
598598
599599 mutex_lock (& mcp -> lock );
600600 ret = mcp_send_data_req_status (mcp , mcp -> txbuf , 1 );
@@ -675,7 +675,7 @@ static int mcp_gpio_get_direction(struct gpio_chip *gc,
675675
676676 mcp -> txbuf [0 ] = MCP2221_GPIO_GET ;
677677
678- mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]. direction );
678+ mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]);
679679
680680 mutex_lock (& mcp -> lock );
681681 ret = mcp_send_data_req_status (mcp , mcp -> txbuf , 1 );
You can’t perform that action at this time.
0 commit comments