rfkill: Make rfkill->name const
Subsystems (3)
PATCH 1/1 rfkill: Make rfkill->name const
The rfkill name can be made const safely,
this makes the compiler happy when drivers make
it point to some const string used elsewhere.
Signed-off-by Ivo van Doorn <[email protected]>
---
include/linux/rfkill.h +1 -1
@@ -63,7 +63,7 @@ enum rfkill_state {* This structure represents a RF switch located on a network device. */ struct rfkill { -char *name; +const char *name;enum rfkill_type type;enum rfkill_state state;
David Miller
maintainerFrom: Ivo van Doorn <[email protected]>
Date: Fri, 1 Jun 2007 20:20:43 +0200
Quoted 5 lines
The rfkill name can be made const safely,
this makes the compiler happy when drivers make
it point to some const string used elsewhere.Signed-off-by Ivo van Doorn <[email protected]>
Patch applied, thanks.