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

Commit 60942e67 authored by Colin Ian King's avatar Colin Ian King Committed by Dmitry Torokhov
Browse files

Input: synaptics-rmi4 - make array rmi_f54_report_type_names static



The array rmi_f54_report_type_names is local to the source and does
not need to be in global scope, so make it static. Also make the array
const char * const.

Cleans up sparse warning:
symbol 'rmi_f54_report_type_names' was not declared. Should it be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a8b4aa0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ enum rmi_f54_report_type {
	F54_MAX_REPORT_TYPE,
};

const char *rmi_f54_report_type_names[] = {
static const char * const rmi_f54_report_type_names[] = {
	[F54_REPORT_NONE]		= "Unknown",
	[F54_8BIT_IMAGE]		= "Normalized 8-Bit Image",
	[F54_16BIT_IMAGE]		= "Normalized 16-Bit Image",