tty: replace ->proc_fops with ->proc_show
Just set up the show callback in the tty_operations, and useproc_create_single_data to create the file without additionalboilerplace code.Signed-off-by: Christoph Hellwig <hch@lst.de>
Christoph Hellwig 8 years ago 8a8dcabf ec7d9c9c