Skip to content

Commit

Permalink
[RFKILL]: Make rfkill->name const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ivo van Doorn authored and David S. Miller committed Jun 7, 2007
1 parent 71e27da commit c36befb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/rfkill.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c36befb

Please sign in to comment.