regulatory: use proper enum for return values
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Dec 2012 16:54:55 +0000 (17:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:23 +0000 (13:01 +0100)
commit2f92212b71f198d42060f7133ff1dc4edf438f6c
tree0a1bd3a91dc246c474b74412beb1eada774ccce6
parent9027b1493b57a6a8f9f56741e4c4189048ea5633
regulatory: use proper enum for return values

Instead of treating special error codes specially,
like -EALREADY, introduce a real enum for all the
needed possibilities and use it.

Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c