You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
firewire: cdev: amendment to "add ioctl to query maximum transmission speed"
The as yet unreleased FW_CDEV_IOC_GET_SPEED ioctl puts only a single integer into the parameter buffer. We can use ioctl()'s return value instead. (Also: Some whitespace change in firewire-cdev.h.) Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
@@ -1214,13 +1214,14 @@ static int ioctl_deallocate_iso_resource_once(struct client *client, void *buffe
|
||||
return init_iso_resource(client, request, ISO_RES_DEALLOC_ONCE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns a speed code: Maximum speed to or from this device,
|
||||
* limited by the device's link speed, the local node's link speed,
|
||||
* and all PHY port speeds between the two links.
|
||||
*/
|
||||
static int ioctl_get_speed(struct client *client, void *buffer)
|
||||
{
|
||||
struct fw_cdev_get_speed *request = buffer;
|
||||
|
||||
request->max_speed = client->device->max_speed;
|
||||
|
||||
return 0;
|
||||
return client->device->max_speed;
|
||||
}
|
||||
|
||||
static int ioctl_send_broadcast_request(struct client *client, void *buffer)
|
||||
|
||||
Reference in New Issue
Block a user