* [PATCH] rfkill: Make rfkill->name const
@ 2007-06-01 18:20 Ivo van Doorn
2007-06-05 7:05 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ivo van Doorn @ 2007-06-01 18:20 UTC (permalink / raw)
To: davem; +Cc: Dmitry Torokhov, netdev
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>
---
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 7c1ffba..a8a6ea8 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rfkill: Make rfkill->name const
2007-06-01 18:20 [PATCH] rfkill: Make rfkill->name const Ivo van Doorn
@ 2007-06-05 7:05 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-06-05 7:05 UTC (permalink / raw)
To: ivdoorn; +Cc: dtor, netdev
From: Ivo van Doorn <ivdoorn@gmail.com>
Date: Fri, 1 Jun 2007 20:20:43 +0200
> 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>
Patch applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-05 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 18:20 [PATCH] rfkill: Make rfkill->name const Ivo van Doorn
2007-06-05 7:05 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).