From 6bdc90abdd034aeaff53f87951b7e89016619cde Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Sat, 13 Apr 2024 14:20:53 -0400 Subject: Misc non-functional cleanup and documentation --- device_info_procfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'device_info_procfs.c') 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, return chars_written; } +struct file_operations nvdebug_read_reg32_file_ops = { + .read = nvdebug_reg32_read, + .llseek = default_llseek, +}; + static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t size, loff_t *off) { char out[12]; int chars_written; @@ -49,11 +54,6 @@ static ssize_t nvdebug_reg_range_read(struct file *f, char __user *buf, size_t s return chars_written; } -struct file_operations nvdebug_read_reg32_file_ops = { - .read = nvdebug_reg32_read, - .llseek = default_llseek, -}; - // Generic mechanism used for printing a subset of bits from a register // Please store a `union reg_range` rather than a `uintptr_t` in the pde_data struct file_operations nvdebug_read_reg_range_file_ops = { -- cgit v1.2.2