diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-15 17:26:56 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-01-03 09:33:24 +0100 |
commit | c103d6ee69f93e123dd05e7d307b099b83c0d82c (patch) | |
tree | 268893eb3bde4dffa21004fa28c51b97545e687f /drivers/ide/ide-floppy.h | |
parent | compat_ioctl: bsg: add handler (diff) | |
download | linux-c103d6ee69f93e123dd05e7d307b099b83c0d82c.tar.xz linux-c103d6ee69f93e123dd05e7d307b099b83c0d82c.zip |
compat_ioctl: ide: floppy: add handler
Rather than relying on fs/compat_ioctl.c, this adds support
for a compat_ioctl() callback in the ide-floppy driver directly,
which lets it translate the scsi commands.
Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/ide/ide-floppy.h')
-rw-r--r-- | drivers/ide/ide-floppy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-floppy.h b/drivers/ide/ide-floppy.h index 13c9b4b6d75e..8505a5f58f4e 100644 --- a/drivers/ide/ide-floppy.h +++ b/drivers/ide/ide-floppy.h @@ -26,6 +26,8 @@ void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *); /* ide-floppy_ioctl.c */ int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t, unsigned int, unsigned long); +int ide_floppy_compat_ioctl(ide_drive_t *, struct block_device *, fmode_t, + unsigned int, unsigned long); #ifdef CONFIG_IDE_PROC_FS /* ide-floppy_proc.c */ |