From 51bcefec10d769b440125ad050a9865efc57b1e7 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Thu, 20 Jun 2019 19:00:54 +0200 Subject: 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 Signed-off-by: Stephen Warren --- 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 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': -- cgit v1.2.1