]> Git Repo - linux.git/commit
tty: We want the port object to be persistent
authorAlan Cox <[email protected]>
Fri, 2 Jan 2009 13:49:21 +0000 (13:49 +0000)
committerLinus Torvalds <[email protected]>
Fri, 2 Jan 2009 18:19:42 +0000 (10:19 -0800)
commitf751928e0ddf54ea4fe5546f35e99efc5b5d9938
treea8198e420a70408dc58cabb54e10f67e0c1c0ebf
parent6ef53066ff7991d5f9670340e92d42ee1776bbe4
tty: We want the port object to be persistent

Move the tty_port and uart_info bits around a little. By embedding the uart_info
into the uart_port we get rid of lots of corner case testing and also get the
ability to go port<->state<->info which is a bit more elegant than the current
data structures.

Downsides - we allocate a tiny bit more memory for unused ports, upside we've
removed as much code as it saved for most users..

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/serial/jsm/jsm_tty.c
drivers/serial/serial_core.c
include/linux/serial_core.h
This page took 0.042235 seconds and 4 git commands to generate.