mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
462e108bac
When building the modules 'modpost' warns about missing MODULE_DESCRIPTION. Since almost none of the rc keymap modules have this, it produces a lot of warnings. As a first step to fixing all media modules, add this line to all keymaps. The description should be a human-readable string describing the remote or the remote controller that the keymap can be used with. Note that keymaps/rc-cec.c is actually compiled into the rc-core, so that is the sole keymap source that didn't need this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sean Young <sean@mess.org>
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Keytable for remote controller of HiSilicon poplar board.
|
|
*
|
|
* Copyright (c) 2017 HiSilicon Technologies Co., Ltd.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <media/rc-map.h>
|
|
|
|
static struct rc_map_table hisi_poplar_keymap[] = {
|
|
{ 0x0000b292, KEY_NUMERIC_1},
|
|
{ 0x0000b293, KEY_NUMERIC_2},
|
|
{ 0x0000b2cc, KEY_NUMERIC_3},
|
|
{ 0x0000b28e, KEY_NUMERIC_4},
|
|
{ 0x0000b28f, KEY_NUMERIC_5},
|
|
{ 0x0000b2c8, KEY_NUMERIC_6},
|
|
{ 0x0000b28a, KEY_NUMERIC_7},
|
|
{ 0x0000b28b, KEY_NUMERIC_8},
|
|
{ 0x0000b2c4, KEY_NUMERIC_9},
|
|
{ 0x0000b287, KEY_NUMERIC_0},
|
|
{ 0x0000b282, KEY_HOMEPAGE},
|
|
{ 0x0000b2ca, KEY_UP},
|
|
{ 0x0000b299, KEY_LEFT},
|
|
{ 0x0000b2c1, KEY_RIGHT},
|
|
{ 0x0000b2d2, KEY_DOWN},
|
|
{ 0x0000b2c5, KEY_DELETE},
|
|
{ 0x0000b29c, KEY_MUTE},
|
|
{ 0x0000b281, KEY_VOLUMEDOWN},
|
|
{ 0x0000b280, KEY_VOLUMEUP},
|
|
{ 0x0000b2dc, KEY_POWER},
|
|
{ 0x0000b29a, KEY_MENU},
|
|
{ 0x0000b28d, KEY_SETUP},
|
|
{ 0x0000b2c5, KEY_BACK},
|
|
{ 0x0000b295, KEY_PLAYPAUSE},
|
|
{ 0x0000b2ce, KEY_ENTER},
|
|
{ 0x0000b285, KEY_CHANNELUP},
|
|
{ 0x0000b286, KEY_CHANNELDOWN},
|
|
{ 0x0000b2da, KEY_NUMERIC_STAR},
|
|
{ 0x0000b2d0, KEY_NUMERIC_POUND},
|
|
};
|
|
|
|
static struct rc_map_list hisi_poplar_map = {
|
|
.map = {
|
|
.scan = hisi_poplar_keymap,
|
|
.size = ARRAY_SIZE(hisi_poplar_keymap),
|
|
.rc_proto = RC_PROTO_NEC,
|
|
.name = RC_MAP_HISI_POPLAR,
|
|
}
|
|
};
|
|
|
|
static int __init init_rc_map_hisi_poplar(void)
|
|
{
|
|
return rc_map_register(&hisi_poplar_map);
|
|
}
|
|
|
|
static void __exit exit_rc_map_hisi_poplar(void)
|
|
{
|
|
rc_map_unregister(&hisi_poplar_map);
|
|
}
|
|
|
|
module_init(init_rc_map_hisi_poplar)
|
|
module_exit(exit_rc_map_hisi_poplar)
|
|
|
|
MODULE_LICENSE("GPL v2");
|
|
MODULE_DESCRIPTION("HiSilicon poplar remote controller keytable");
|