[PATCH] checkpatch: Add uart_ops to normally const structs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux