Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62e62da8 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Jiri Kosina
Browse files

HID: hid-debug.c: make local symbols static



hid-debug.c: make local symbols static

The symbols hid_resolv_event and hid_dump_input_mapping
are only used locally in this file. Make them static to prevent
the following sparse warnings:

warning: symbol 'hid_resolv_event' was not declared. Should it be static?
warning: symbol 'hid_dump_input_mapping' was not declared. Should it be static?

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 4bb9508b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -864,13 +864,13 @@ static const char **names[EV_MAX + 1] = {
	[EV_SND] = sounds,			[EV_REP] = repeats,
};

void hid_resolv_event(__u8 type, __u16 code, struct seq_file *f) {

static void hid_resolv_event(__u8 type, __u16 code, struct seq_file *f)
{
	seq_printf(f, "%s.%s", events[type] ? events[type] : "?",
		names[type] ? (names[type][code] ? names[type][code] : "?") : "?");
}

void hid_dump_input_mapping(struct hid_device *hid, struct seq_file *f)
static void hid_dump_input_mapping(struct hid_device *hid, struct seq_file *f)
{
	int i, j, k;
	struct hid_report *report;