[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b4a2ed13-c71f-c973-3b09-b632e083a88b@cogentembedded.com>
Date: Tue, 16 May 2017 14:08:12 +0300
From: Nikita Yushchenko <nikita.yoush@...entembedded.com>
To: Dong Aisheng <aisheng.dong@....com>, linux-serial@...r.kernel.org
Cc: fugang.duan@....com, dongas86@...il.com,
gregkh@...uxfoundation.org, yangbo.lu@....com,
linux-kernel@...r.kernel.org, stefan@...er.ch, Mingkai.Hu@....com,
jslaby@...e.com, linux-arm-kernel@...ts.infradead.org
Subject: Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register
support
> @@ -2000,6 +2007,7 @@ static int lpuart_probe(struct platform_device *pdev)
> }
> sport->port.line = ret;
> sport->lpuart32 = sdata->is_32;
> + lpuart_is_be = sdata->is_be;
Setting a global variable in per-device routine is quite bad design.
Powered by blists - more mailing lists