mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
UPSTREAM: [media] media: rc: constify struct proto_names
Declare struct proto_names and its member name as const.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
(cherry picked from commit 53df877717)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
99eb8f9a52
commit
fa3660beea
@@ -777,9 +777,9 @@ static struct class rc_class = {
|
||||
* used by the sysfs protocols file. Note that the order
|
||||
* of the entries is relevant.
|
||||
*/
|
||||
static struct {
|
||||
static const struct {
|
||||
u64 type;
|
||||
char *name;
|
||||
const char *name;
|
||||
const char *module_name;
|
||||
} proto_names[] = {
|
||||
{ RC_BIT_NONE, "none", NULL },
|
||||
|
||||
Reference in New Issue
Block a user