kernel-fxtec-pro1x/net/rfkill
Henrique de Moraes Holschuh 96c87607ac rfkill: introduce RFKILL_STATE_MAX
While it is interesting to not add last-enum-markers because it allows gcc
to warn us of switch() statements missing a valid state, we really should
be handling memory corruption on a rfkill state with default clauses,
anyway.

So add RFKILL_STATE_MAX and use it where applicable.  It makes for safer
code in the long run.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-08-22 16:29:57 -04:00
..
Kconfig [RFKILL]: Add support for an rfkill LED. 2007-10-10 16:54:10 -07:00
Makefile [NET]: rfkill: add support for input key to control wireless radio 2007-05-07 00:34:20 -07:00
rfkill-input.c rfkill: query EV_SW states when rfkill-input (re)?connects to a input device 2008-08-01 15:31:32 -04:00
rfkill-input.h rfkill: add default global states (v2) 2008-08-22 16:29:56 -04:00
rfkill.c rfkill: introduce RFKILL_STATE_MAX 2008-08-22 16:29:57 -04:00