[PATCH] checkpatch: Add uart_ops to normally const structs

From: Joe Perches
Date: Sat Apr 04 2015 - 13:47:50 EST


Add another struct to the list of normally const struct types

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---

On Fri, 2015-04-03 at 10:43 -0700, Joe Perches wrote:
> On Fri, 2015-04-03 at 19:01 +0200, Maxime Coquelin wrote:
> > This drivers adds support to the STM32 USART controller, which is a
> > standard serial driver.
> trivia:
> > diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
> []
> > +static struct uart_ops stm32_uart_ops = {
> could be const
> and it could be updated in a separate patch later too.

scripts/checkpatch.pl | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9a8b2bd..db3dcf5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5338,6 +5338,7 @@ sub process {
stacktrace_ops|
sysfs_ops|
tty_operations|
+ uart_ops|
usb_mon_operations|
wd_ops}x;
if ($line !~ /\bconst\b/ &&


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/