tty: uartclk value from serial_core exposed to sysfs
Added file /sys/devices/.../tty/ttySX/uartclk to allow reading uartclk value in struct uart_port in serial_core via sysfs. tty_register_device() has been generalized and refactored in order to add support for setting drvdata and attribute_group to the device. Signed-off-by:Tomas Hlavacek <tmshlvck@gmail.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- Documentation/ABI/testing/sysfs-tty 9 additions, 0 deletionsDocumentation/ABI/testing/sysfs-tty
- drivers/tty/serial/serial_core.c 32 additions, 2 deletionsdrivers/tty/serial/serial_core.c
- drivers/tty/tty_io.c 59 additions, 10 deletionsdrivers/tty/tty_io.c
- include/linux/tty.h 4 additions, 0 deletionsinclude/linux/tty.h
Loading
Please register or sign in to comment