staging: speakup: Change char * array type as static const
This patch fixes "char * array declaration might be better as static const" checkpatch.pl warning in kobjects.c Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1f74d5f688
commit
333c474b82
@ -81,7 +81,7 @@ static ssize_t chars_chartab_show(struct kobject *kobj,
|
|||||||
static void report_char_chartab_status(int reset, int received, int used,
|
static void report_char_chartab_status(int reset, int received, int used,
|
||||||
int rejected, int do_characters)
|
int rejected, int do_characters)
|
||||||
{
|
{
|
||||||
char *object_type[] = {
|
static char const *object_type[] = {
|
||||||
"character class entries",
|
"character class entries",
|
||||||
"character descriptions",
|
"character descriptions",
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user