mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 08:33:14 +00:00
tty: 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>
This commit is contained in:
parent
ec7d9c9ce8
commit
8a8dcabffb
14 changed files with 16 additions and 172 deletions
|
@ -293,7 +293,7 @@ struct tty_operations {
|
|||
int (*poll_get_char)(struct tty_driver *driver, int line);
|
||||
void (*poll_put_char)(struct tty_driver *driver, int line, char ch);
|
||||
#endif
|
||||
const struct file_operations *proc_fops;
|
||||
int (*proc_show)(struct seq_file *, void *);
|
||||
} __randomize_layout;
|
||||
|
||||
struct tty_driver {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue