Skip to contentSkip to conversation

rfkill: Make rfkill->name const

PATCH In review Ivo van Doorn 2 participants 2 messages Jun 1, 2007 – Jun 5, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---

include/linux/rfkill.h +1 -1
index 7c1ffba..a8a6ea8 100644
@@ -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;