[pinmux scripts PATCH 2/3] Do not output NVIDIA as an author

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

 



From: Thierry Reding <treding@xxxxxxxxxx>

Printing out the string 'NVIDIA' as the author of a file looks somewhat
strange and is pretty meaningless given that there's already a copyright
from NVIDIA in the files. Detect the special case and ignore it.

Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
 soc-to-kernel-pinctrl-driver.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/soc-to-kernel-pinctrl-driver.py b/soc-to-kernel-pinctrl-driver.py
index 37f34b15db2b..0c04625b2e87 100755
--- a/soc-to-kernel-pinctrl-driver.py
+++ b/soc-to-kernel-pinctrl-driver.py
@@ -44,8 +44,13 @@ print('''\
 // SPDX-License-Identifier: GPL-2.0-only
 /*
  * Pinctrl data for the NVIDIA %s pinmux
- *
- * Author: %s
+''' % soc.titlename, end = '')
+
+if soc.kernel_author != 'NVIDIA':
+    print(' *')
+    print(' * Author: %s' % soc.kernel_author)
+
+print('''\
  *
  * Copyright (c) %s, NVIDIA CORPORATION.  All rights reserved.
  */
@@ -62,7 +67,7 @@ print('''\
  * Most pins affected by the pinmux can also be GPIOs. Define these first.
  * These must match how the GPIO driver names/numbers its pins.
  */
-''' % (soc.titlename, soc.kernel_author, soc.kernel_copyright_years), end='')
+''' % soc.kernel_copyright_years, end='')
 
 # Do not add any more exceptions here; new SoCs should be formatted correctly
 if soc.name == 'tegra30':
-- 
2.21.0




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux