File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ struct mcp_get_gpio {
79
79
u8 cmd ;
80
80
u8 dummy ;
81
81
struct {
82
- u8 direction ;
83
82
u8 value ;
83
+ u8 direction ;
84
84
} gpio [MCP_NGPIO ];
85
85
} __packed ;
86
86
@@ -594,7 +594,7 @@ static int mcp_gpio_get(struct gpio_chip *gc,
594
594
595
595
mcp -> txbuf [0 ] = MCP2221_GPIO_GET ;
596
596
597
- mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]. value );
597
+ mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]);
598
598
599
599
mutex_lock (& mcp -> lock );
600
600
ret = mcp_send_data_req_status (mcp , mcp -> txbuf , 1 );
@@ -675,7 +675,7 @@ static int mcp_gpio_get_direction(struct gpio_chip *gc,
675
675
676
676
mcp -> txbuf [0 ] = MCP2221_GPIO_GET ;
677
677
678
- mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]. direction );
678
+ mcp -> gp_idx = offsetof(struct mcp_get_gpio , gpio [offset ]);
679
679
680
680
mutex_lock (& mcp -> lock );
681
681
ret = mcp_send_data_req_status (mcp , mcp -> txbuf , 1 );
You can’t perform that action at this time.
0 commit comments