Skip to content

Commit

Permalink
net: dsa: mv88e6xxx: rename chip header
Browse files Browse the repository at this point in the history
The mv88e6xxx.h is meant to contains the chip structures and data.
Rename it to chip.h, as for other source/header pairs of the driver.

At the same time, ensure that relative header inclusions are separated
by a newline and sorted alphabetically.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vivien Didelot authored and David S. Miller committed Jun 5, 2017
1 parent 2d9888c commit 4d5f2ba
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <linux/phy.h>
#include <net/dsa.h>

#include "mv88e6xxx.h"
#include "chip.h"
#include "global1.h"
#include "global2.h"
#include "phy.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Marvell 88e6xxx common definitions
* Marvell 88E6xxx Ethernet switch single-chip definition
*
* Copyright (c) 2008 Marvell Semiconductor
*
Expand All @@ -9,8 +9,8 @@
* (at your option) any later version.
*/

#ifndef __MV88E6XXX_H
#define __MV88E6XXX_H
#ifndef _MV88E6XXX_CHIP_H
#define _MV88E6XXX_CHIP_H

#include <linux/if_vlan.h>
#include <linux/irq.h>
Expand Down Expand Up @@ -924,4 +924,5 @@ int mv88e6xxx_update(struct mv88e6xxx_chip *chip, int addr, int reg,
u16 update);
int mv88e6xxx_wait(struct mv88e6xxx_chip *chip, int addr, int reg, u16 mask);
struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip);
#endif

#endif /* _MV88E6XXX_CHIP_H */
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/global1.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* (at your option) any later version.
*/

#include "mv88e6xxx.h"
#include "chip.h"
#include "global1.h"

int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val)
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/global1.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef _MV88E6XXX_GLOBAL1_H
#define _MV88E6XXX_GLOBAL1_H

#include "mv88e6xxx.h"
#include "chip.h"

int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/global1_atu.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* (at your option) any later version.
*/

#include "mv88e6xxx.h"
#include "chip.h"
#include "global1.h"

/* Offset 0x01: ATU FID Register */
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/global1_vtu.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* (at your option) any later version.
*/

#include "mv88e6xxx.h"
#include "chip.h"
#include "global1.h"

/* Offset 0x02: VTU FID Register */
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/dsa/mv88e6xxx/global2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include "mv88e6xxx.h"

#include "chip.h"
#include "global2.h"

#define ADDR_GLOBAL2 0x1c
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/global2.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef _MV88E6XXX_GLOBAL2_H
#define _MV88E6XXX_GLOBAL2_H

#include "mv88e6xxx.h"
#include "chip.h"

#ifdef CONFIG_NET_DSA_MV88E6XXX_GLOBAL2

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/module.h>
#include <net/dsa.h>

#include "mv88e6xxx.h"
#include "chip.h"
#include "phy.h"

int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/dsa/mv88e6xxx/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

#include <linux/phy.h>
#include "mv88e6xxx.h"

#include "chip.h"
#include "port.h"

int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef _MV88E6XXX_PORT_H
#define _MV88E6XXX_PORT_H

#include "mv88e6xxx.h"
#include "chip.h"

int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg,
u16 *val);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/serdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include <linux/mii.h>

#include "chip.h"
#include "global2.h"
#include "mv88e6xxx.h"
#include "phy.h"
#include "port.h"
#include "serdes.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/mv88e6xxx/serdes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef _MV88E6XXX_SERDES_H
#define _MV88E6XXX_SERDES_H

#include "mv88e6xxx.h"
#include "chip.h"

#define MV88E6352_ADDR_SERDES 0x0f
#define MV88E6352_SERDES_PAGE_FIBER 0x01
Expand Down

0 comments on commit 4d5f2ba

Please sign in to comment.