mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
firewire: Add card index field to get_info cdev ioctl struct.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
8fbdbb3683
commit
e7533505fe
@ -290,6 +290,8 @@ static int ioctl_get_info(struct client *client, void __user *arg)
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_info.card = client->device->card->index;
|
||||||
|
|
||||||
if (copy_to_user(arg, &get_info, sizeof get_info))
|
if (copy_to_user(arg, &get_info, sizeof get_info))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
|
@ -140,6 +140,9 @@ struct fw_cdev_get_info {
|
|||||||
/* If non-zero, a fw_cdev_event_bus_reset struct will be
|
/* If non-zero, a fw_cdev_event_bus_reset struct will be
|
||||||
* copied here with the current state of the bus. */
|
* copied here with the current state of the bus. */
|
||||||
__u64 bus_reset;
|
__u64 bus_reset;
|
||||||
|
|
||||||
|
/* The index of the card this devices belongs to. */
|
||||||
|
__u32 card;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fw_cdev_send_request {
|
struct fw_cdev_send_request {
|
||||||
|
Loading…
Reference in New Issue
Block a user