[2/2] gpio: vf610: Cut down on boilerplate

Message ID 20180910064735.4780-1-linus.walleij@linaro.org
State Accepted
Commit 36e2add18225e33518a3383d8379edad7bc959f5
Headers show
Series
  • [1/2] gpio: vf610: Include the right header
Related show

Commit Message

Linus Walleij Sept. 10, 2018, 6:47 a.m.
Just use the SPDX identifier for the license.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/gpio/gpio-vf610.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

-- 
2.17.1

Comments

Stefan Agner Sept. 10, 2018, 5:11 p.m. | #1
On 09.09.2018 23:47, Linus Walleij wrote:
> Just use the SPDX identifier for the license.

> 

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Acked-by: Stefan Agner <stefan@agner.ch>


> ---

>  drivers/gpio/gpio-vf610.c | 11 +----------

>  1 file changed, 1 insertion(+), 10 deletions(-)

> 

> diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c

> index 93eed646d92f..5960396c8d9a 100644

> --- a/drivers/gpio/gpio-vf610.c

> +++ b/drivers/gpio/gpio-vf610.c

> @@ -1,20 +1,11 @@

> +// SPDX-License-Identifier: GPL-2.0+

>  /*

>   * Freescale vf610 GPIO support through PORT and GPIO

>   *

>   * Copyright (c) 2014 Toradex AG.

>   *

>   * Author: Stefan Agner <stefan@agner.ch>.

> - *

> - * This program is free software; you can redistribute it and/or

> - * modify it under the terms of the GNU General Public License

> - * as published by the Free Software Foundation; either version 2

> - * of the License, or (at your option) any later version.

> - * This program is distributed in the hope that it will be useful,

> - * but WITHOUT ANY WARRANTY; without even the implied warranty of

> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

> - * GNU General Public License for more details.

>   */

> -

>  #include <linux/bitops.h>

>  #include <linux/err.h>

>  #include <linux/gpio/driver.h>

Patch

diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 93eed646d92f..5960396c8d9a 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -1,20 +1,11 @@ 
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Freescale vf610 GPIO support through PORT and GPIO
  *
  * Copyright (c) 2014 Toradex AG.
  *
  * Author: Stefan Agner <stefan@agner.ch>.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
-
 #include <linux/bitops.h>
 #include <linux/err.h>
 #include <linux/gpio/driver.h>