ide: replace ->proc_fops with ->proc_show
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Apr 2018 19:25:54 +0000 (21:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commitec7d9c9ce897174243af4fcd201dbfc34df0f3a3
treeb8d010de43bd1a5b1faefd204b3d2447502bb0e4
parent61fb5c043f92f5be4612b7511dcaf3f3fe6ab4c1
ide: replace ->proc_fops with ->proc_show

Just set up the show callback in the tty_operations, and use
proc_create_single_data to create the file without additional
boilerplace code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/ide/ide-cd.c
drivers/ide/ide-disk_proc.c
drivers/ide/ide-floppy_proc.c
drivers/ide/ide-proc.c
drivers/ide/ide-tape.c
include/linux/ide.h