]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inclusions
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 4 Jun 2022 06:15:21 +0000 (08:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jun 2022 03:43:54 +0000 (20:43 -0700)
When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/41d99ef8629e1db03d4f2662f5556611e0b94652.1654323308.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8.h

index 03da369675c68e2eb63d1825f76faf19edea2c56..cae76f5e7787c8a8e6485ef1f48d5c36ac0b8b80 100644 (file)
@@ -7,7 +7,8 @@
 
 #ifndef __KSZ8XXX_H
 #define __KSZ8XXX_H
-#include <linux/kernel.h>
+
+#include <linux/types.h>
 
 enum ksz_regs {
        REG_IND_CTRL_0,