Skip to contentSkip to conversation

gpio: mockup: minor maintenance

PATCH In review Bartosz Golaszewski 2 participants 4 messages Jan 14, 2020 – Jan 15, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover gpio: mockup: minor maintenance

From: Bartosz Golaszewski <[email protected]>

Just two tweaks to the testing driver: update the license tag to conform with the current SPDX list and sort the headers alphabetically for easier maintenance.

Bartosz Golaszewski (2):
gpio: mockup: update the license tag
gpio: mockup: sort headers alphabetically

 drivers/gpio/gpio-mockup.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/2 gpio: mockup: update the license tag

From: Bartosz Golaszewski <[email protected]>

The current GPL v2.0 or later SPDX tag is 'GPL-2.0-or-later' as defined at https://spdx.org/licenses/.

---
 drivers/gpio/gpio-mockup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mockup.c +1 -1
index 94b8d3ae27bc..5f81f087103f 100644
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * GPIO Testing Device Driver
  *
Signature · 1 line
2.23.0
#2 lore raw

PATCH 2/2 gpio: mockup: sort headers alphabetically

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

For consistency and easier maintenance: sort the headers alphabetically.

---
 drivers/gpio/gpio-mockup.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpio/gpio-mockup.c +7 -7
index 5f81f087103f..7d343bea784a 100644
@@ -7,18 +7,18 @@
  * Copyright (C) 2017 Bartosz Golaszewski <[email protected]>
  */
 
-#include <linux/init.h>
-#include <linux/module.h>
-#include <linux/gpio/driver.h>
+#include <linux/debugfs.h>
 #include <linux/gpio/consumer.h>
-#include <linux/platform_device.h>
-#include <linux/slab.h>
+#include <linux/gpio/driver.h>
+#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/irq_sim.h>
-#include <linux/debugfs.h>
-#include <linux/uaccess.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
 #include <linux/property.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
 
 #include "gpiolib.h"
 
Signature · 1 line
2.23.0
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 5 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Just two tweaks to the testing driver: update the license tag to conform with the current SPDX list and sort the headers alphabetically for easier maintenance.

Thanks Bartosz,

I just applied both patches so you don't need to bother with pull requests for these two.

Yours,
Linus Walleij