Source
x
static int alps_input_configured(struct hid_device *hdev, struct hid_input *hi)
/*
* Copyright (c) 2016 Masaki Ota <masaki.ota@jp.alps.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*/
/* ALPS Device Product ID */
/* Mouse data ReportID */
/* Absolute data ReportID */
/* Feature ReportID */
/* Feature ReportID */
/* Feature Report Length */
/* SP Support */
enum dev_num {
U1,
T4,
UNKNOWN,
};
/**
* struct u1_data
*
* @input: pointer to the kernel input device
* @input2: pointer to the kernel input2 device
* @hdev: pointer to the struct hid_device
*
* @dev_type: device type
* @max_fingers: total number of fingers
* @has_sp: boolean of sp existense
* @sp_btn_info: button information
* @x_active_len_mm: active area length of X (mm)
* @y_active_len_mm: active area length of Y (mm)
* @x_max: maximum x coordinate value