| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2017 Sanechips Technology Co., Ltd. |
|---|
| 3 | 4 | * Copyright 2017 Linaro Ltd. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #include <linux/module.h> |
|---|
| 11 | 8 | #include <media/rc-map.h> |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | static struct rc_map_table zx_irdec_table[] = { |
|---|
| 14 | | - { 0x01, KEY_1 }, |
|---|
| 15 | | - { 0x02, KEY_2 }, |
|---|
| 16 | | - { 0x03, KEY_3 }, |
|---|
| 17 | | - { 0x04, KEY_4 }, |
|---|
| 18 | | - { 0x05, KEY_5 }, |
|---|
| 19 | | - { 0x06, KEY_6 }, |
|---|
| 20 | | - { 0x07, KEY_7 }, |
|---|
| 21 | | - { 0x08, KEY_8 }, |
|---|
| 22 | | - { 0x09, KEY_9 }, |
|---|
| 23 | | - { 0x31, KEY_0 }, |
|---|
| 11 | + { 0x01, KEY_NUMERIC_1 }, |
|---|
| 12 | + { 0x02, KEY_NUMERIC_2 }, |
|---|
| 13 | + { 0x03, KEY_NUMERIC_3 }, |
|---|
| 14 | + { 0x04, KEY_NUMERIC_4 }, |
|---|
| 15 | + { 0x05, KEY_NUMERIC_5 }, |
|---|
| 16 | + { 0x06, KEY_NUMERIC_6 }, |
|---|
| 17 | + { 0x07, KEY_NUMERIC_7 }, |
|---|
| 18 | + { 0x08, KEY_NUMERIC_8 }, |
|---|
| 19 | + { 0x09, KEY_NUMERIC_9 }, |
|---|
| 20 | + { 0x31, KEY_NUMERIC_0 }, |
|---|
| 24 | 21 | { 0x16, KEY_DELETE }, |
|---|
| 25 | 22 | { 0x0a, KEY_MODE }, /* Input method */ |
|---|
| 26 | 23 | { 0x0c, KEY_VOLUMEUP }, |
|---|