Signed-off-by:wanghao505<wanghao505@huawei.com>

Signed-off-by: wanghao505 <wanghao505@huawei.com>
This commit is contained in:
wanghao505
2022-06-02 04:12:41 +00:00
parent 76d186300d
commit ebfc28d792
+3 -3
View File
@@ -119,7 +119,7 @@ struct mtdev {
struct mtdev_state *state;
};
#define MT_ABS_SIZE 12
#define MT_ABS_SIZE 14
static const unsigned int mtdev_map_abs2mt[ABS_CNT] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -129,12 +129,12 @@ static const unsigned int mtdev_map_abs2mt[ABS_CNT] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008,
0x0009, 0x000a, 0x000b, 0x000c, 0x0000, 0x0000, 0x0000, 0x0000,
0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x0000, 0x0000,
};
static const unsigned int mtdev_map_mt2abs[MT_ABS_SIZE] = {
0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
0x0038, 0x0039, 0x003a, 0x003b,
0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d,
};
static inline int mtdev_is_absmt(unsigned int code)