aboutsummaryrefslogtreecommitdiffstats
path: root/device_info_procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'device_info_procfs.c')
-rw-r--r--device_info_procfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/device_info_procfs.c b/device_info_procfs.c
index c8903fc..ce5843f 100644
--- a/device_info_procfs.c
+++ b/device_info_procfs.c
@@ -23,6 +23,11 @@ static ssize_t nvdebug_reg32_read(struct file *f, char __user *buf, size_t size,
23 return chars_written; 23 return chars_written;
24} 24}
25 25
26struct file_operations nvdebug_read_reg32_file_ops = {
27 .read = nvdebug_reg32_read,
28 .llseek = default_llseek,
29};
30
26static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t size, loff_t *off) { 31static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t size, loff_t *off) {
27 char out[12]; 32 char out[12];
28 int chars_written; 33 int chars_written;
@@ -49,11 +54,6 @@ static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t s
49 return chars_written; 54 return chars_written;
50} 55}
51 56
52struct file_operations nvdebug_read_reg32_file_ops = {
53 .read = nvdebug_reg32_read,
54 .llseek = default_llseek,
55};
56
57// Generic mechanism used for printing a subset of bits from a register 57// Generic mechanism used for printing a subset of bits from a register
58// Please store a `union reg_range` rather than a `uintptr_t` in the pde_data 58// Please store a `union reg_range` rather than a `uintptr_t` in the pde_data
59struct file_operations nvdebug_read_reg_range_file_ops = { 59struct file_operations nvdebug_read_reg_range_file_ops = {