Skip to content

Commit 256b64f

Browse files
vincent-mailholgregkh
authored andcommitted
can: etas_es58x: sort the includes by alphabetic order
[ Upstream commit 8fd9323 ] Follow the best practices, reorder the includes. While doing so, bump up copyright year of each modified files. Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Link: https://lore.kernel.org/all/20221126160525.87036-1-mailhol.vincent@wanadoo.fr Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Stable-dep-of: 38c0aba ("can: etas_es58x: populate ndo_change_mtu() to prevent buffer overflow") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f44124f commit 256b64f

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

drivers/net/can/usb/etas_es58x/es581_4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
*
77
* Copyright (c) 2019 Robert Bosch Engineering and Business Solutions. All rights reserved.
88
* Copyright (c) 2020 ETAS K.K.. All rights reserved.
9-
* Copyright (c) 2020, 2021 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
9+
* Copyright (c) 2020-2022 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
1010
*/
1111

12+
#include <asm/unaligned.h>
1213
#include <linux/kernel.h>
1314
#include <linux/units.h>
14-
#include <asm/unaligned.h>
1515

1616
#include "es58x_core.h"
1717
#include "es581_4.h"

drivers/net/can/usb/etas_es58x/es58x_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
*
88
* Copyright (c) 2019 Robert Bosch Engineering and Business Solutions. All rights reserved.
99
* Copyright (c) 2020 ETAS K.K.. All rights reserved.
10-
* Copyright (c) 2020, 2021 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
10+
* Copyright (c) 2020-2022 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
1111
*/
1212

13+
#include <asm/unaligned.h>
14+
#include <linux/crc16.h>
1315
#include <linux/ethtool.h>
1416
#include <linux/kernel.h>
1517
#include <linux/module.h>
1618
#include <linux/usb.h>
17-
#include <linux/crc16.h>
18-
#include <asm/unaligned.h>
1919

2020
#include "es58x_core.h"
2121

drivers/net/can/usb/etas_es58x/es58x_core.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
*
77
* Copyright (c) 2019 Robert Bosch Engineering and Business Solutions. All rights reserved.
88
* Copyright (c) 2020 ETAS K.K.. All rights reserved.
9-
* Copyright (c) 2020, 2021 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
9+
* Copyright (c) 2020-2022 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
1010
*/
1111

1212
#ifndef __ES58X_COMMON_H__
1313
#define __ES58X_COMMON_H__
1414

15-
#include <linux/types.h>
16-
#include <linux/usb.h>
17-
#include <linux/netdevice.h>
1815
#include <linux/can.h>
1916
#include <linux/can/dev.h>
17+
#include <linux/netdevice.h>
18+
#include <linux/types.h>
19+
#include <linux/usb.h>
2020

2121
#include "es581_4.h"
2222
#include "es58x_fd.h"

drivers/net/can/usb/etas_es58x/es58x_fd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
*
99
* Copyright (c) 2019 Robert Bosch Engineering and Business Solutions. All rights reserved.
1010
* Copyright (c) 2020 ETAS K.K.. All rights reserved.
11-
* Copyright (c) 2020, 2021 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
11+
* Copyright (c) 2020-2022 Vincent Mailhol <mailhol.vincent@wanadoo.fr>
1212
*/
1313

14+
#include <asm/unaligned.h>
1415
#include <linux/kernel.h>
1516
#include <linux/units.h>
16-
#include <asm/unaligned.h>
1717

1818
#include "es58x_core.h"
1919
#include "es58x_fd.h"

0 commit comments

Comments
 (0)