diff options
author | Tom Rini | 2018-05-06 17:58:06 -0400 |
---|---|---|
committer | Tom Rini | 2018-05-07 09:34:12 -0400 |
commit | 83d290c56fab2d38cd1ab4c4cc7099559c1d5046 (patch) | |
tree | 5e5d1b40b52aaf96b707e0da2474573306d22f7b /include/power | |
parent | 7ce85318cfff5fd82a059131761559cba7fef309 (diff) |
SPDX: Convert all of our single license tags to Linux Kernel style
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.
In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.
This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/power')
31 files changed, 31 insertions, 62 deletions
diff --git a/include/power/act8846_pmic.h b/include/power/act8846_pmic.h index a811f28e633..acd0fd671e7 100644 --- a/include/power/act8846_pmic.h +++ b/include/power/act8846_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Google, Inc * Written by Simon Glass <sjg@chromium.org> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _PMIC_ACT8846_H_ diff --git a/include/power/as3722.h b/include/power/as3722.h index cb4b188bcfc..9f045d5ab63 100644 --- a/include/power/as3722.h +++ b/include/power/as3722.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014 NVIDIA Corporation - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __POWER_AS3722_H__ diff --git a/include/power/battery.h b/include/power/battery.h index dc8d153c19c..1e3d59d76e6 100644 --- a/include/power/battery.h +++ b/include/power/battery.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __POWER_BATTERY_H_ diff --git a/include/power/fg_battery_cell_params.h b/include/power/fg_battery_cell_params.h index d18e2d6731a..b8c895bbabb 100644 --- a/include/power/fg_battery_cell_params.h +++ b/include/power/fg_battery_cell_params.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __FG_BATTERY_CELL_PARAMS_H_ diff --git a/include/power/hi6553_pmic.h b/include/power/hi6553_pmic.h index fcd131a7189..d0abe207551 100644 --- a/include/power/hi6553_pmic.h +++ b/include/power/hi6553_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 Linaro * Peter Griffin <peter.griffin@linaro.org> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __HI6553_PMIC_H__ diff --git a/include/power/ltc3676_pmic.h b/include/power/ltc3676_pmic.h index dcaa9851939..36c79716fa4 100644 --- a/include/power/ltc3676_pmic.h +++ b/include/power/ltc3676_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014 Gateworks Corporation * Tim Harvey <tharvey@gateworks.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __LTC3676_PMIC_H_ diff --git a/include/power/max17042_fg.h b/include/power/max17042_fg.h index ce9605336ea..ec8377d3707 100644 --- a/include/power/max17042_fg.h +++ b/include/power/max17042_fg.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX17042_FG_H_ diff --git a/include/power/max77686_pmic.h b/include/power/max77686_pmic.h index 23003524962..82fe3509a0b 100644 --- a/include/power/max77686_pmic.h +++ b/include/power/max77686_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Rajeshwari Shinde <rajeshwari.s@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX77686_H_ diff --git a/include/power/max77693_fg.h b/include/power/max77693_fg.h index 42626ed8393..c2ae62231ec 100644 --- a/include/power/max77693_fg.h +++ b/include/power/max77693_fg.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2013 Samsung Electronics * Piotr Wilczek <p.wilczek@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX77693_FG_H_ diff --git a/include/power/max77693_muic.h b/include/power/max77693_muic.h index a2c29eb6ce0..c9afab218c9 100644 --- a/include/power/max77693_muic.h +++ b/include/power/max77693_muic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2013 Samsung Electronics * Piotr Wilczek <p.wilczek@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX77693_MUIC_H_ diff --git a/include/power/max77693_pmic.h b/include/power/max77693_pmic.h index 3d59e5916e5..9e0e05c56ac 100644 --- a/include/power/max77693_pmic.h +++ b/include/power/max77693_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2013 Samsung Electronics * Piotr Wilczek <p.wilczek@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX77693_PMIC_H_ diff --git a/include/power/max77696_pmic.h b/include/power/max77696_pmic.h index 71cdf880548..69bb7da349f 100644 --- a/include/power/max77696_pmic.h +++ b/include/power/max77696_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Freescale Semiconductor, Inc. * Fabio Estevam <fabio.estevam@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX77696_PMIC_H__ diff --git a/include/power/max8997_muic.h b/include/power/max8997_muic.h index e2085499837..e4ceab6f7a9 100644 --- a/include/power/max8997_muic.h +++ b/include/power/max8997_muic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX8997_MUIC_H_ diff --git a/include/power/max8997_pmic.h b/include/power/max8997_pmic.h index 728d60afa59..956eebb9685 100644 --- a/include/power/max8997_pmic.h +++ b/include/power/max8997_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2011 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX8997_PMIC_H_ diff --git a/include/power/max8998_pmic.h b/include/power/max8998_pmic.h index 03d06e8a531..b1a87d66af6 100644 --- a/include/power/max8998_pmic.h +++ b/include/power/max8998_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2011 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MAX8998_PMIC_H_ diff --git a/include/power/mc34vr500_pmic.h b/include/power/mc34vr500_pmic.h index b0b143a5919..d2edda68905 100644 --- a/include/power/mc34vr500_pmic.h +++ b/include/power/mc34vr500_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2016 Freescale Semiconductor, Inc. * Hou Zhiqiang <Zhiqiang.Hou@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __MC34VR500_H_ diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h index 41cb710d78f..f4383ed7784 100644 --- a/include/power/pfuze100_pmic.h +++ b/include/power/pfuze100_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014 Gateworks Corporation * Tim Harvey <tharvey@gateworks.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __PFUZE100_PMIC_H_ diff --git a/include/power/pfuze3000_pmic.h b/include/power/pfuze3000_pmic.h index 7d66ba48d4d..87ea7cad466 100644 --- a/include/power/pfuze3000_pmic.h +++ b/include/power/pfuze3000_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Freescale Semiconductor, Inc * Peng Fan <Peng.Fan@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __PFUZE3000_PMIC_H_ #define __PFUZE3000_PMIC_H_ diff --git a/include/power/pmic.h b/include/power/pmic.h index f2fe537fb7c..2ca9365fc8a 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -1,11 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014-2015 Samsung Electronics * Przemyslaw Marczak <p.marczak@samsung.com> * * Copyright (C) 2011-2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CORE_PMIC_H_ diff --git a/include/power/power_chrg.h b/include/power/power_chrg.h index 8fa5c66ad75..db19953fb72 100644 --- a/include/power/power_chrg.h +++ b/include/power/power_chrg.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2012 Samsung Electronics * Lukasz Majewski <l.majewski@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __POWER_CHARGER_H_ diff --git a/include/power/regulator.h b/include/power/regulator.h index 2bbc1e51b34..5318ab3acec 100644 --- a/include/power/regulator.h +++ b/include/power/regulator.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2014-2015 Samsung Electronics * Przemyslaw Marczak <p.marczak@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _INCLUDE_REGULATOR_H_ diff --git a/include/power/rk8xx_pmic.h b/include/power/rk8xx_pmic.h index 47a6b36e7ea..c06248f7518 100644 --- a/include/power/rk8xx_pmic.h +++ b/include/power/rk8xx_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Google, Inc * Written by Simon Glass <sjg@chromium.org> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _PMIC_RK8XX_H_ diff --git a/include/power/rn5t567_pmic.h b/include/power/rn5t567_pmic.h index 9ce601f2ad7..93bc7cba5a7 100644 --- a/include/power/rn5t567_pmic.h +++ b/include/power/rn5t567_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2016 Toradex AG * Stefan Agner <stefan.agner@toradex.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __RN5T567_PMIC_H_ #define __RN5T567_PMIC_H_ diff --git a/include/power/s5m8767.h b/include/power/s5m8767.h index ba88ff75b02..f75ed5d928f 100644 --- a/include/power/s5m8767.h +++ b/include/power/s5m8767.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2015 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __S5M8767_H_ diff --git a/include/power/sandbox_pmic.h b/include/power/sandbox_pmic.h index c5e6fda2ea0..1dbd15b5235 100644 --- a/include/power/sandbox_pmic.h +++ b/include/power/sandbox_pmic.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Samsung Electronics * Przemyslaw Marczak <p.marczak@samsung.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _SANDBOX_PMIC_H_ diff --git a/include/power/tps62362.h b/include/power/tps62362.h index 720c3387223..f0fc538463c 100644 --- a/include/power/tps62362.h +++ b/include/power/tps62362.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2014 Texas Instruments Incorporated - http://www.ti.com * Author: Felipe Balbi <balbi@ti.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __POWER_TPS62362_H__ diff --git a/include/power/tps65090.h b/include/power/tps65090.h index 3a0690b4753..2716968a8dd 100644 --- a/include/power/tps65090.h +++ b/include/power/tps65090.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2015 Google, Inc * Written by Simon Glass <sjg@chromium.org> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __TPS65090_PMIC_H_ diff --git a/include/power/tps65217.h b/include/power/tps65217.h index cb07ea5ce62..00fbab80cb8 100644 --- a/include/power/tps65217.h +++ b/include/power/tps65217.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2011-2013 * Texas Instruments, <www.ti.com> * - * SPDX-License-Identifier: GPL-2.0+ - * * For more details, please see the TRM at http://www.ti.com/product/tps65217a */ diff --git a/include/power/tps65218.h b/include/power/tps65218.h index f5218f9eb2b..bb66c3f3ab6 100644 --- a/include/power/tps65218.h +++ b/include/power/tps65218.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2014 * Texas Instruments, <www.ti.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __POWER_TPS65218_H__ diff --git a/include/power/tps65910.h b/include/power/tps65910.h index 976130dc3e0..48e0b2c5aba 100644 --- a/include/power/tps65910.h +++ b/include/power/tps65910.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2011-2013 * Texas Instruments, <www.ti.com> * - * SPDX-License-Identifier: GPL-2.0+ - * * For more details, please see the TRM at http://www.ti.com/product/tps65910 */ #ifndef __POWER_TPS65910_H__ diff --git a/include/power/tps65910_pmic.h b/include/power/tps65910_pmic.h index e8d9ffaa9fb..66214786d3e 100644 --- a/include/power/tps65910_pmic.h +++ b/include/power/tps65910_pmic.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) EETS GmbH, 2017, Felix Brack <f.brack@eets.ch> - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __TPS65910_PMIC_H_ |