From: Jiri Slaby Date: Thu, 18 Oct 2012 20:26:45 +0000 (+0200) Subject: TTY: tty_buffer, cache pointer to tty->buf X-Git-Tag: omap-for-v3.8/cleanup-headers-serial-take2-signed~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cff39c69b57df6d7bf4e87f2963571aa4ea6336;p=pandora-kernel.git TTY: tty_buffer, cache pointer to tty->buf During the move of tty buffers from tty_struct to tty_port, we will need to switch all users of buf to tty->port->buf. There are many functions where this is accessed directly in their code many times. Cache the tty->buf pointer in such functions now and change only single lines in each function in the next patch. Not that it is convenient for the next patch, but the code is now also more readable. Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed