lkml.org 
[lkml]   [2010]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/25] drivers/serial/suncore.c: Use static const char arrays
    Date
    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/serial/suncore.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/serial/suncore.c b/drivers/serial/suncore.c
    index 6381a02..f2a5b54 100644
    --- a/drivers/serial/suncore.c
    +++ b/drivers/serial/suncore.c
    @@ -84,8 +84,8 @@ EXPORT_SYMBOL(sunserial_console_match);

    void sunserial_console_termios(struct console *con, struct device_node *uart_dp)
    {
    + char mode_prop[sizeof("ttyX-mode")];
    const char *mode, *s;
    - char mode_prop[] = "ttyX-mode";
    int baud, bits, stop, cflag;
    char parity;

    @@ -106,7 +106,7 @@ void sunserial_console_termios(struct console *con, struct device_node *uart_dp)
    if (of_console_options)
    c = *of_console_options;

    - mode_prop[3] = c;
    + sprintf(mode_prop, "tty%c-mode", c);

    dp = of_find_node_by_path("/options");
    mode = of_get_property(dp, mode_prop, NULL);
    --
    1.7.3.rc1


    \
     
     \ /
      Last update: 2010-09-13 21:53    [W:0.018 / U:0.616 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site