lkml.org 
[lkml]   [2011]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/4] tty: serial: altera_uart: Use port->regshift to store bus shift
    On Wed, Feb 09, 2011 at 10:57:04AM +0100, Tobias Klauser wrote:
    > Use the regshift member of struct uart_port to store the address stride
    > from platform data. This way we can save one dereference per call of
    > altera_uart_readl and altera_uart_writel.
    >
    > This also allows us to use the driver without platform data, which is
    > needed for device tree support in the Nios2 port.
    >
    > Cc: Anton Vorontsov <cbouatmailru@gmail.com>
    > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

    Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>

    Thanks!

    --
    Anton Vorontsov
    Email: cbouatmailru@gmail.com


    \
     
     \ /
      Last update: 2011-02-09 12:29    [W:0.020 / U:64.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site