diff options
author | Thierry Reding <treding@nvidia.com> | 2019-06-20 19:00:54 +0200 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2019-07-01 17:42:06 -0600 |
commit | 51bcefec10d769b440125ad050a9865efc57b1e7 (patch) | |
tree | e78db35899b337dd43834123e8ce0a7b92f3b500 | |
parent | 6dcb6c5d9f3568466398b71be9d5f246c76306e8 (diff) | |
download | tegra-pinmux-scripts-51bcefec10d769b440125ad050a9865efc57b1e7.tar.gz |
Do not output NVIDIA as an author
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>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rwxr-xr-x | soc-to-kernel-pinctrl-driver.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/soc-to-kernel-pinctrl-driver.py b/soc-to-kernel-pinctrl-driver.py index 37f34b1..0c04625 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': |