[pinmux,scripts,2/3] Do not output NVIDIA as an author
diff mbox series

Message ID 20190620170055.19771-2-thierry.reding@gmail.com
State New
Headers show
Series
  • [pinmux,scripts,1/3] Update kernel driver template
Related show

Commit Message

Thierry Reding June 20, 2019, 5 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

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@nvidia.com>
---
 soc-to-kernel-pinctrl-driver.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Patch
diff mbox series

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':