@@ -212,8 +212,8 @@ struct ft260_i2c_read_request_report {
__le16 length; /* data payload length */
} __packed;
-struct ft260_i2c_input_report {
- u8 report; /* FT260_I2C_REPORT */
+struct ft260_input_report {
+ u8 report; /* FT260_I2C_REPORT or FT260_UART_REPORT */
u8 length; /* data payload length */
u8 data[2]; /* data payload */
} __packed;
@@ -1016,7 +1016,7 @@ static int ft260_raw_event(struct hid_device *hdev, struct hid_report *report,
u8 *data, int size)
{
struct ft260_device *dev = hid_get_drvdata(hdev);
- struct ft260_i2c_input_report *xfer = (void *)data;
+ struct ft260_input_report *xfer = (void *)data;
if (xfer->report >= FT260_I2C_REPORT_MIN &&
xfer->report <= FT260_I2C_REPORT_MAX) {
Signed-off-by: Christina Quast <contact@christina-quast.de> Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Cc: Daniel Beer <daniel.beer@igorinstitute.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/hid/hid-ft260.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)