ide-cd: move the remaining cdrom.c ioctl handling code to ide-cd_ioctl.c

Previous thread: ide-cd: update driver version, comments and copyrights by Linux Kernel Mailing List on Friday, February 1, 2008 - 7:59 pm. (1 message)

Next thread: au1xxx-ide: device tree bugfix by Linux Kernel Mailing List on Friday, February 1, 2008 - 8:00 pm. (1 message)
To: <git-commits-head@...>
Date: Friday, February 1, 2008 - 7:59 pm

Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=c...
Commit: f9afd18b5827be93fd9fb3cc84ab9bba38b00db8
Parent: d554336514a63342c2e4b06b4287ad93c112b00f
Author: Borislav Petkov <bbpetkov@yahoo.de>
AuthorDate: Fri Feb 1 23:09:29 2008 +0100
Committer: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
CommitDate: Fri Feb 1 23:09:29 2008 +0100

ide-cd: move the remaining cdrom.c ioctl handling code to ide-cd_ioctl.c

There should be no functional changes from this.

Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/ide-cd.c | 217 +-------------------------------------------
drivers/ide/ide-cd.h | 8 ++-
drivers/ide/ide-cd_ioctl.c | 210 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 218 insertions(+), 217 deletions(-)

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index accf0d4..c931685 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1381,7 +1381,7 @@ void msf_from_bcd (struct atapi_msf *msf)
msf->frame = BCD2BIN(msf->frame);
}

-static int cdrom_check_status(ide_drive_t *drive, struct request_sense *sense)
+int cdrom_check_status(ide_drive_t *drive, struct request_sense *sense)
{
struct request req;
struct cdrom_info *info = drive->driver_data;
@@ -1402,85 +1402,6 @@ static int cdrom_check_status(ide_drive_t *drive, struct request_sense *sense)
return ide_cd_queue_pc(drive, &req);
}

-/* Lock the door if LOCKFLAG is nonzero; unlock it otherwise. */
-int ide_cd_lockdoor(ide_drive_t *drive, int lockflag,
- struct request_sense *sense)
-{
- struct cdrom_info *cd = drive->driver_data;
- struct request_sense my_sense;
- struct request req;
- int stat;
-
- if (sense == NULL)
- sense = &my_sense;
-
- /* If the drive cannot lock the door, just pretend. */
- if (cd-&...

Previous thread: ide-cd: update driver version, comments and copyrights by Linux Kernel Mailing List on Friday, February 1, 2008 - 7:59 pm. (1 message)

Next thread: au1xxx-ide: device tree bugfix by Linux Kernel Mailing List on Friday, February 1, 2008 - 8:00 pm. (1 message)