diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:24 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:24 -0500 |
commit | a1bb9457f06439f22571e93bddcca63144a08296 (patch) | |
tree | c4b250183a7b552918fb0b001205d0b81b8ca46d /drivers/cdrom/cdrom.c | |
parent | 5c68429dfe8256c6069555e5851838f8e3175f78 (diff) |
ide-cd: move lba_to_msf() and msf_to_lba() to <linux/cdrom.h>
* Move lba_to_msf() and msf_to_lba() to <linux/cdrom.h>
(use 'u8' type instead of 'byte' while at it).
* Remove msf_to_lba() copy from drivers/cdrom/cdrom.c.
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/cdrom/cdrom.c')
-rw-r--r-- | drivers/cdrom/cdrom.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index af0561053167..47e5b40510cb 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -2787,12 +2787,6 @@ int cdrom_ioctl(struct file * file, struct cdrom_device_info *cdi, | |||
2787 | return -ENOSYS; | 2787 | return -ENOSYS; |
2788 | } | 2788 | } |
2789 | 2789 | ||
2790 | static inline | ||
2791 | int msf_to_lba(char m, char s, char f) | ||
2792 | { | ||
2793 | return (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET; | ||
2794 | } | ||
2795 | |||
2796 | /* | 2790 | /* |
2797 | * Required when we need to use READ_10 to issue other than 2048 block | 2791 | * Required when we need to use READ_10 to issue other than 2048 block |
2798 | * reads | 2792 | * reads |