Skip to content

Commit

Permalink
net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inc…
Browse files Browse the repository at this point in the history
…lusions

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>
  • Loading branch information
Christophe JAILLET authored and Jakub Kicinski committed Jun 8, 2022
1 parent ba36c5b commit 67074ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/dsa/microchip/ksz8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 67074ae

Please sign in to comment.