* [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically
@ 2022-06-30 9:38 Andy Shevchenko
2022-06-30 9:40 ` Ilpo Järvinen
2022-06-30 15:05 ` Greg Kroah-Hartman
0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2022-06-30 9:38 UTC (permalink / raw)
To: Andy Shevchenko, Greg Kroah-Hartman, linux-serial, linux-kernel
Cc: Ilpo Järvinen, Jiri Slaby
For the sake of better maintenance, sort included headers alphabetically.
While at it, split the serial group of headers which makes clear the
subsystem the driver belongs to.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/tty/serial/8250/8250_dw.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index d5df17455f1d..86762593579f 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -9,26 +9,27 @@
* LCR is written whilst busy. If it is, then a busy detect interrupt is
* raised, the LCR needs to be rewritten and the uart status register read.
*/
+#include <linux/acpi.h>
+#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
-#include <linux/serial_8250.h>
-#include <linux/serial_reg.h>
+#include <linux/notifier.h>
#include <linux/of.h>
#include <linux/platform_device.h>
+#include <linux/pm_runtime.h>
#include <linux/property.h>
-#include <linux/workqueue.h>
-#include <linux/notifier.h>
-#include <linux/slab.h>
-#include <linux/acpi.h>
-#include <linux/clk.h>
#include <linux/reset.h>
-#include <linux/pm_runtime.h>
+#include <linux/slab.h>
+#include <linux/workqueue.h>
#include <asm/byteorder.h>
+#include <linux/serial_8250.h>
+#include <linux/serial_reg.h>
+
#include "8250_dwlib.h"
/* Offsets for the DesignWare specific registers */
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically
2022-06-30 9:38 [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically Andy Shevchenko
@ 2022-06-30 9:40 ` Ilpo Järvinen
2022-06-30 15:05 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2022-06-30 9:40 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Greg Kroah-Hartman, linux-serial, LKML, Jiri Slaby
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
On Thu, 30 Jun 2022, Andy Shevchenko wrote:
> For the sake of better maintenance, sort included headers alphabetically.
> While at it, split the serial group of headers which makes clear the
> subsystem the driver belongs to.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
--
i.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically
2022-06-30 9:38 [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically Andy Shevchenko
2022-06-30 9:40 ` Ilpo Järvinen
@ 2022-06-30 15:05 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2022-06-30 15:05 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-serial, linux-kernel, Ilpo Järvinen, Jiri Slaby
On Thu, Jun 30, 2022 at 12:38:16PM +0300, Andy Shevchenko wrote:
> For the sake of better maintenance, sort included headers alphabetically.
How does that make anything easier to maintain?
> While at it, split the serial group of headers which makes clear the
> subsystem the driver belongs to.
Where did you do that?
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/tty/serial/8250/8250_dw.c | 17 +++++++++--------
> 1 file changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index d5df17455f1d..86762593579f 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -9,26 +9,27 @@
> * LCR is written whilst busy. If it is, then a busy detect interrupt is
> * raised, the LCR needs to be rewritten and the uart status register read.
> */
> +#include <linux/acpi.h>
> +#include <linux/clk.h>
> #include <linux/delay.h>
> #include <linux/device.h>
> #include <linux/io.h>
> #include <linux/mod_devicetable.h>
> #include <linux/module.h>
> -#include <linux/serial_8250.h>
> -#include <linux/serial_reg.h>
> +#include <linux/notifier.h>
> #include <linux/of.h>
> #include <linux/platform_device.h>
> +#include <linux/pm_runtime.h>
> #include <linux/property.h>
> -#include <linux/workqueue.h>
> -#include <linux/notifier.h>
> -#include <linux/slab.h>
> -#include <linux/acpi.h>
> -#include <linux/clk.h>
> #include <linux/reset.h>
> -#include <linux/pm_runtime.h>
> +#include <linux/slab.h>
> +#include <linux/workqueue.h>
>
> #include <asm/byteorder.h>
>
> +#include <linux/serial_8250.h>
> +#include <linux/serial_reg.h>
Is this the "split"?
Anyway, it's just code churn, I'll apply it...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-30 15:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-30 9:38 [PATCH v1 1/1] serial: 8250_dw: Sort headers alphabetically Andy Shevchenko
2022-06-30 9:40 ` Ilpo Järvinen
2022-06-30 15:05 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox