[RFKILL]: Make rfkill->name const
authorIvo van Doorn <IvDoorn@gmail.com>
Tue, 5 Jun 2007 07:04:46 +0000 (00:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Jun 2007 20:39:34 +0000 (13:39 -0700)
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 <IvDoorn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rfkill.h

index 7c1ffbab78657a105018ffd2c71b8871496255f4..a8a6ea809da096d19fbb0d164c986be671dcef12 100644 (file)
@@ -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;