summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2017-01-23 11:11:05 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-25 05:52:34 -0500
commit67fd553ce0e55a468ee24f61ddf6b40ba610bbb5 (patch)
tree9ab1eca13a399ad6663746ab6065304f7a57eb3d /lib
parentfd0c478c0dd800449e2d70025ef742679a16a8de (diff)
test_firmware: move misc_device down
This will make further changes easier to review. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/test_firmware.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/test_firmware.c b/lib/test_firmware.c
index a3e8ec3fb1c5..1cb9bf9eb41f 100644
--- a/lib/test_firmware.c
+++ b/lib/test_firmware.c
@@ -42,12 +42,6 @@ static const struct file_operations test_fw_fops = {
42 .read = test_fw_misc_read, 42 .read = test_fw_misc_read,
43}; 43};
44 44
45static struct miscdevice test_fw_misc_device = {
46 .minor = MISC_DYNAMIC_MINOR,
47 .name = "test_firmware",
48 .fops = &test_fw_fops,
49};
50
51static ssize_t trigger_request_store(struct device *dev, 45static ssize_t trigger_request_store(struct device *dev,
52 struct device_attribute *attr, 46 struct device_attribute *attr,
53 const char *buf, size_t count) 47 const char *buf, size_t count)
@@ -132,6 +126,12 @@ out:
132} 126}
133static DEVICE_ATTR_WO(trigger_async_request); 127static DEVICE_ATTR_WO(trigger_async_request);
134 128
129static struct miscdevice test_fw_misc_device = {
130 .minor = MISC_DYNAMIC_MINOR,
131 .name = "test_firmware",
132 .fops = &test_fw_fops,
133};
134
135static int __init test_firmware_init(void) 135static int __init test_firmware_init(void)
136{ 136{
137 int rc; 137 int rc;