瀏覽代碼

[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 <IvDoorn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ivo van Doorn 18 年之前
父節點
當前提交
c36befb523
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/rfkill.h

+ 1 - 1
include/linux/rfkill.h

@@ -63,7 +63,7 @@ enum rfkill_state {
  * This structure represents a RF switch located on a network device.
  * This structure represents a RF switch located on a network device.
  */
  */
 struct rfkill {
 struct rfkill {
-	char *name;
+	const char *name;
 	enum rfkill_type type;
 	enum rfkill_type type;
 
 
 	enum rfkill_state state;
 	enum rfkill_state state;