aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
authorElias Oltmanns <eo@nebensachen.de>2008-10-10 16:39:40 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:40 -0400
commit92f1f8fd8040e7b50a67a850a935509bb01201bb (patch)
treedf27468982bc64f0a6fdc54f05153e382ca63a1b /drivers/ide/ide-floppy.c
parentd6e2955a6b82d2312b5ff885ce13c8ab54d59d96 (diff)
ide: Remove ide_spin_wait_hwgroup() and use special requests instead
Use a special request for serialisation purposes and get rid of the awkward ide_spin_wait_hwgroup(). This also involves converting the ide_devset structure so it can be shared by the /proc and the ioctl code. Signed-off-by: Elias Oltmanns <eo@nebensachen.de> [bart: use rq->cmd[] directly] Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index a63aba2c8265..d36f155470a4 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -629,9 +629,9 @@ static sector_t idefloppy_capacity(ide_drive_t *drive)
629} 629}
630 630
631#ifdef CONFIG_IDE_PROC_FS 631#ifdef CONFIG_IDE_PROC_FS
632ide_devset_rw(bios_cyl, 0, 1023, bios_cyl); 632ide_devset_rw_field(bios_cyl, bios_cyl);
633ide_devset_rw(bios_head, 0, 255, bios_head); 633ide_devset_rw_field(bios_head, bios_head);
634ide_devset_rw(bios_sect, 0, 63, bios_sect); 634ide_devset_rw_field(bios_sect, bios_sect);
635 635
636static int get_ticks(ide_drive_t *drive) 636static int get_ticks(ide_drive_t *drive)
637{ 637{
@@ -646,14 +646,14 @@ static int set_ticks(ide_drive_t *drive, int arg)
646 return 0; 646 return 0;
647} 647}
648 648
649IDE_DEVSET(ticks, S_RW, 0, 255, get_ticks, set_ticks); 649IDE_DEVSET(ticks, DS_SYNC, get_ticks, set_ticks);
650 650
651static const struct ide_devset *idefloppy_settings[] = { 651static const struct ide_proc_devset idefloppy_settings[] = {
652 &ide_devset_bios_cyl, 652 IDE_PROC_DEVSET(bios_cyl, 0, 1023),
653 &ide_devset_bios_head, 653 IDE_PROC_DEVSET(bios_head, 0, 255),
654 &ide_devset_bios_sect, 654 IDE_PROC_DEVSET(bios_sect, 0, 63),
655 &ide_devset_ticks, 655 IDE_PROC_DEVSET(ticks, 0, 255),
656 NULL 656 { 0 },
657}; 657};
658#endif 658#endif
659 659