aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-16 16:24:29 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-23 07:36:28 -0400
commitb9dc61cf404165fb77e80c853e9fec9af258f9ce (patch)
tree7a8f7741b9482218332fa68bfcfcd54583434809 /drivers/firewire
parentd505e6e87127d4dbdaa5d91561eed810c180ca23 (diff)
firewire: core: use C99 initializer in array of ioctl handlers
to make the correspondence of ioctl numbers and handlers more obvious. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-cdev.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index ee2e87353102..acf4fa1f3f8c 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -1385,27 +1385,27 @@ static int ioctl_send_stream_packet(struct client *client, union ioctl_arg *arg)
1385} 1385}
1386 1386
1387static int (* const ioctl_handlers[])(struct client *, union ioctl_arg *) = { 1387static int (* const ioctl_handlers[])(struct client *, union ioctl_arg *) = {
1388 ioctl_get_info, 1388 [0x00] = ioctl_get_info,
1389 ioctl_send_request, 1389 [0x01] = ioctl_send_request,
1390 ioctl_allocate, 1390 [0x02] = ioctl_allocate,
1391 ioctl_deallocate, 1391 [0x03] = ioctl_deallocate,
1392 ioctl_send_response, 1392 [0x04] = ioctl_send_response,
1393 ioctl_initiate_bus_reset, 1393 [0x05] = ioctl_initiate_bus_reset,
1394 ioctl_add_descriptor, 1394 [0x06] = ioctl_add_descriptor,
1395 ioctl_remove_descriptor, 1395 [0x07] = ioctl_remove_descriptor,
1396 ioctl_create_iso_context, 1396 [0x08] = ioctl_create_iso_context,
1397 ioctl_queue_iso, 1397 [0x09] = ioctl_queue_iso,
1398 ioctl_start_iso, 1398 [0x0a] = ioctl_start_iso,
1399 ioctl_stop_iso, 1399 [0x0b] = ioctl_stop_iso,
1400 ioctl_get_cycle_timer, 1400 [0x0c] = ioctl_get_cycle_timer,
1401 ioctl_allocate_iso_resource, 1401 [0x0d] = ioctl_allocate_iso_resource,
1402 ioctl_deallocate_iso_resource, 1402 [0x0e] = ioctl_deallocate_iso_resource,
1403 ioctl_allocate_iso_resource_once, 1403 [0x0f] = ioctl_allocate_iso_resource_once,
1404 ioctl_deallocate_iso_resource_once, 1404 [0x10] = ioctl_deallocate_iso_resource_once,
1405 ioctl_get_speed, 1405 [0x11] = ioctl_get_speed,
1406 ioctl_send_broadcast_request, 1406 [0x12] = ioctl_send_broadcast_request,
1407 ioctl_send_stream_packet, 1407 [0x13] = ioctl_send_stream_packet,
1408 ioctl_get_cycle_timer2, 1408 [0x14] = ioctl_get_cycle_timer2,
1409}; 1409};
1410 1410
1411static int dispatch_ioctl(struct client *client, 1411static int dispatch_ioctl(struct client *client,