diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firewire/fw-cdev.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 08fe68d34f32..05ad2a8f286c 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c | |||
@@ -1220,6 +1220,15 @@ static int ioctl_deallocate_iso_resource_once(struct client *client, void *buffe | |||
1220 | return init_iso_resource(client, request, ISO_RES_DEALLOC_ONCE); | 1220 | return init_iso_resource(client, request, ISO_RES_DEALLOC_ONCE); |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | static int ioctl_get_speed(struct client *client, void *buffer) | ||
1224 | { | ||
1225 | struct fw_cdev_get_speed *request = buffer; | ||
1226 | |||
1227 | request->max_speed = client->device->max_speed; | ||
1228 | |||
1229 | return 0; | ||
1230 | } | ||
1231 | |||
1223 | static int (* const ioctl_handlers[])(struct client *client, void *buffer) = { | 1232 | static int (* const ioctl_handlers[])(struct client *client, void *buffer) = { |
1224 | ioctl_get_info, | 1233 | ioctl_get_info, |
1225 | ioctl_send_request, | 1234 | ioctl_send_request, |
@@ -1238,6 +1247,7 @@ static int (* const ioctl_handlers[])(struct client *client, void *buffer) = { | |||
1238 | ioctl_deallocate_iso_resource, | 1247 | ioctl_deallocate_iso_resource, |
1239 | ioctl_allocate_iso_resource_once, | 1248 | ioctl_allocate_iso_resource_once, |
1240 | ioctl_deallocate_iso_resource_once, | 1249 | ioctl_deallocate_iso_resource_once, |
1250 | ioctl_get_speed, | ||
1241 | }; | 1251 | }; |
1242 | 1252 | ||
1243 | static int dispatch_ioctl(struct client *client, | 1253 | static int dispatch_ioctl(struct client *client, |