diff options
| author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-03-26 07:09:02 -0400 |
|---|---|---|
| committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-21 03:50:08 -0400 |
| commit | 7fd097d42b90afadae4867db5d580bcd7b3b596d (patch) | |
| tree | 707e1b8ff7af5e298bd3208d4daeda089a6e93e7 /include/linux | |
| parent | 032d8d90ba23e1770604bbb1102ec77f5aa8ae44 (diff) | |
cdrom: use list_head for cdrom_device_info list
Use list_head for cdrom_device_info list instead of opencoded
singly list handling.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cdrom.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index a5cd2047624e..40e05d0a6e45 100644 --- a/include/linux/cdrom.h +++ b/include/linux/cdrom.h | |||
| @@ -910,6 +910,7 @@ struct mode_page_header { | |||
| 910 | #ifdef __KERNEL__ | 910 | #ifdef __KERNEL__ |
| 911 | #include <linux/fs.h> /* not really needed, later.. */ | 911 | #include <linux/fs.h> /* not really needed, later.. */ |
| 912 | #include <linux/device.h> | 912 | #include <linux/device.h> |
| 913 | #include <linux/list.h> | ||
| 913 | 914 | ||
| 914 | struct packet_command | 915 | struct packet_command |
| 915 | { | 916 | { |
| @@ -934,7 +935,7 @@ struct packet_command | |||
| 934 | /* Uniform cdrom data structures for cdrom.c */ | 935 | /* Uniform cdrom data structures for cdrom.c */ |
| 935 | struct cdrom_device_info { | 936 | struct cdrom_device_info { |
| 936 | struct cdrom_device_ops *ops; /* link to device_ops */ | 937 | struct cdrom_device_ops *ops; /* link to device_ops */ |
| 937 | struct cdrom_device_info *next; /* next device_info for this major */ | 938 | struct list_head list; /* linked list of all device_info */ |
| 938 | struct gendisk *disk; /* matching block layer disk */ | 939 | struct gendisk *disk; /* matching block layer disk */ |
| 939 | void *handle; /* driver-dependent data */ | 940 | void *handle; /* driver-dependent data */ |
| 940 | /* specifications */ | 941 | /* specifications */ |
