iwlwifi: mvm: refactor debugfs copy_from_user()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Nov 2013 08:10:21 +0000 (09:10 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 9 Dec 2013 20:29:04 +0000 (22:29 +0200)
commit1fa3f57a1ca19ad45ff5fa248d509fc442e82a63
treea424611bc2bc266b8a933d5b931b52c6f8337e9f
parent7f09d70436729dee9dfa7ab11fda9d384c4bdf9f
iwlwifi: mvm: refactor debugfs copy_from_user()

Abstract the copy_from_user() pattern into the macros defining
debugfs files, reducing the code and making adding new files
safer by avoiding having deal with copy_from_user() directly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/debugfs.h