]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit873800aef0a025f0854edc4db6732b805d344110
treeb8d010de43bd1a5b1faefd204b3d2447502bb0e4
parentffc392fb2ca5698b9574dee1f0a3ab3fa61357c0
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