diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-06 16:47:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 04:19:08 -0500 |
commit | d479e908457f4972205fcafa054f8030e91781ef (patch) | |
tree | 1e3bacc19fc158a292807eabcd20012fb674d3ea /drivers/acpi/video.c | |
parent | 0aec63e67c69545ca757a73a66f5dcf05fa484bf (diff) |
[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>
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index d10668f14699..bd4887518373 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -920,8 +920,8 @@ static int acpi_video_device_add_fs(struct acpi_device *device) | |||
920 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 920 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
921 | "Unable to create 'state' fs entry\n")); | 921 | "Unable to create 'state' fs entry\n")); |
922 | else { | 922 | else { |
923 | acpi_video_device_state_fops.write = acpi_video_device_write_state; | ||
923 | entry->proc_fops = &acpi_video_device_state_fops; | 924 | entry->proc_fops = &acpi_video_device_state_fops; |
924 | entry->proc_fops->write = acpi_video_device_write_state; | ||
925 | entry->data = acpi_driver_data(device); | 925 | entry->data = acpi_driver_data(device); |
926 | entry->owner = THIS_MODULE; | 926 | entry->owner = THIS_MODULE; |
927 | } | 927 | } |
@@ -934,8 +934,8 @@ static int acpi_video_device_add_fs(struct acpi_device *device) | |||
934 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 934 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
935 | "Unable to create 'brightness' fs entry\n")); | 935 | "Unable to create 'brightness' fs entry\n")); |
936 | else { | 936 | else { |
937 | acpi_video_device_brightness_fops.write = acpi_video_device_write_brightness; | ||
937 | entry->proc_fops = &acpi_video_device_brightness_fops; | 938 | entry->proc_fops = &acpi_video_device_brightness_fops; |
938 | entry->proc_fops->write = acpi_video_device_write_brightness; | ||
939 | entry->data = acpi_driver_data(device); | 939 | entry->data = acpi_driver_data(device); |
940 | entry->owner = THIS_MODULE; | 940 | entry->owner = THIS_MODULE; |
941 | } | 941 | } |
@@ -1239,8 +1239,8 @@ static int acpi_video_bus_add_fs(struct acpi_device *device) | |||
1239 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 1239 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
1240 | "Unable to create 'POST' fs entry\n")); | 1240 | "Unable to create 'POST' fs entry\n")); |
1241 | else { | 1241 | else { |
1242 | acpi_video_bus_POST_fops.write = acpi_video_bus_write_POST; | ||
1242 | entry->proc_fops = &acpi_video_bus_POST_fops; | 1243 | entry->proc_fops = &acpi_video_bus_POST_fops; |
1243 | entry->proc_fops->write = acpi_video_bus_write_POST; | ||
1244 | entry->data = acpi_driver_data(device); | 1244 | entry->data = acpi_driver_data(device); |
1245 | entry->owner = THIS_MODULE; | 1245 | entry->owner = THIS_MODULE; |
1246 | } | 1246 | } |
@@ -1253,8 +1253,8 @@ static int acpi_video_bus_add_fs(struct acpi_device *device) | |||
1253 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 1253 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
1254 | "Unable to create 'DOS' fs entry\n")); | 1254 | "Unable to create 'DOS' fs entry\n")); |
1255 | else { | 1255 | else { |
1256 | acpi_video_bus_DOS_fops.write = acpi_video_bus_write_DOS; | ||
1256 | entry->proc_fops = &acpi_video_bus_DOS_fops; | 1257 | entry->proc_fops = &acpi_video_bus_DOS_fops; |
1257 | entry->proc_fops->write = acpi_video_bus_write_DOS; | ||
1258 | entry->data = acpi_driver_data(device); | 1258 | entry->data = acpi_driver_data(device); |
1259 | entry->owner = THIS_MODULE; | 1259 | entry->owner = THIS_MODULE; |
1260 | } | 1260 | } |