Merge tag 'tty-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH: "Here is the big tty/serial driver update for 4.14-rc1. Well, not all that big, just a number of small serial driver fixes, and a new serial driver. Also in here are some much needed goldfish tty driver (emulator) fixes to try to get that codebase under control. All of these have been in linux-next for a while with no reported issues" * tag 'tty-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (94 commits) tty: goldfish: Implement support for kernel 'earlycon' parameter tty: goldfish: Use streaming DMA for r/w operations on Ranchu platforms tty: goldfish: Refactor constants to better reflect their nature serial: 8250_port: Remove useless NULL checks earlycon: initialise baud field of earlycon device structure tty: hvcs: make ktermios const pty: show associative slave of ptmx in fdinfo tty: n_gsm: Add compat_ioctl tty: hvcs: constify vio_device_id tty: hvc_vio: constify vio_device_id tty: mips_ejtag_fdc: constify mips_cdmm_device_id Introduce 8250_men_mcb mcb: introduce mcb_get_resource() serial: imx: Avoid post-PIO cleanup if TX DMA is started tty: serial: imx: disable irq after suspend serial: 8250_uniphier: add suspend/resume support serial: 8250_uniphier: use CHAR register for canary to detect power-off serial: 8250_uniphier: fix serial port index in private data serial: 8250: of: Add new port type for MediaTek BTIF controller on MT7622/23 SoC dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings ...
This commit is contained in:
@ -462,6 +462,14 @@ static int hung_up_tty_fasync(int fd, struct file *file, int on)
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
static void tty_show_fdinfo(struct seq_file *m, struct file *file)
|
||||
{
|
||||
struct tty_struct *tty = file_tty(file);
|
||||
|
||||
if (tty && tty->ops && tty->ops->show_fdinfo)
|
||||
tty->ops->show_fdinfo(tty, m);
|
||||
}
|
||||
|
||||
static const struct file_operations tty_fops = {
|
||||
.llseek = no_llseek,
|
||||
.read = tty_read,
|
||||
@ -472,6 +480,7 @@ static const struct file_operations tty_fops = {
|
||||
.open = tty_open,
|
||||
.release = tty_release,
|
||||
.fasync = tty_fasync,
|
||||
.show_fdinfo = tty_show_fdinfo,
|
||||
};
|
||||
|
||||
static const struct file_operations console_fops = {
|
||||
|
Reference in New Issue
Block a user