[ACPI] move some run-time structure inits to compile time
acpi_processor_limit_fops.write was written at run time, but can be initiailized at compile-time instead. Similar for acpi_video_bus_POST_fops.write and friends, but keep doing those at runtime to avoid prototype-hell. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:

committed by
Len Brown

parent
0aec63e67c
commit
d479e90845
@@ -394,6 +394,7 @@ ssize_t acpi_processor_write_limit(struct file * file,
|
||||
struct file_operations acpi_processor_limit_fops = {
|
||||
.open = acpi_processor_limit_open_fs,
|
||||
.read = seq_read,
|
||||
.write = acpi_processor_write_limit,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
|
Reference in New Issue
Block a user