diff mbox series

[07/30] net: eepro100: Fix pointer location

Message ID 20200523163837.407592-7-marek.vasut+renesas@gmail.com
State Accepted
Commit 7a30873585c9da2221f652c091bab5e66d5d6653
Delegated to: Joe Hershberger
Headers show
Series [01/30] net: eepro100: Remove EEPRO100_SROM_WRITE | expand

Commit Message

Marek Vasut May 23, 2020, 4:38 p.m. UTC
This is automated cleanup via checkpatch, no functional change.
./scripts/checkpatch.pl --show-types -f drivers/net/eepro100.c
./scripts/checkpatch.pl --types POINTER_LOCATION -f --fix --fix-inplace drivers/net/eepro100.c

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
---
 drivers/net/eepro100.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Ramon Fried May 23, 2020, 5:13 p.m. UTC | #1
On Sat, May 23, 2020 at 7:40 PM Marek Vasut <marek.vasut@gmail.com> wrote:
>
> This is automated cleanup via checkpatch, no functional change.
> ./scripts/checkpatch.pl --show-types -f drivers/net/eepro100.c
> ./scripts/checkpatch.pl --types POINTER_LOCATION -f --fix --fix-inplace drivers/net/eepro100.c
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> ---
>  drivers/net/eepro100.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
> index d367052cd2..2aad124ae5 100644
> --- a/drivers/net/eepro100.c
> +++ b/drivers/net/eepro100.c
> @@ -203,9 +203,9 @@ static const char i82558_config_cmd[] = {
>  static void init_rx_ring(struct eth_device *dev);
>  static void purge_tx_ring(struct eth_device *dev);
>
> -static void read_hw_addr(struct eth_device *dev, bd_t * bis);
> +static void read_hw_addr(struct eth_device *dev, bd_t *bis);
>
> -static int eepro100_init(struct eth_device *dev, bd_t * bis);
> +static int eepro100_init(struct eth_device *dev, bd_t *bis);
>  static int eepro100_send(struct eth_device *dev, void *packet, int length);
>  static int eepro100_recv(struct eth_device *dev);
>  static void eepro100_halt(struct eth_device *dev);
> @@ -285,7 +285,7 @@ static int set_phyreg(struct eth_device *dev, unsigned char addr,
>   * Check if given phyaddr is valid, i.e. there is a PHY connected.
>   * Do this by checking model value field from ID2 register.
>   */
> -static struct eth_device* verify_phyaddr(const char *devname,
> +static struct eth_device *verify_phyaddr(const char *devname,
>                                          unsigned char addr)
>  {
>         struct eth_device *dev;
> @@ -372,7 +372,7 @@ static struct pci_device_id supported[] = {
>         {}
>  };
>
> -int eepro100_initialize(bd_t * bis)
> +int eepro100_initialize(bd_t *bis)
>  {
>         pci_dev_t devno;
>         int card_number = 0;
> @@ -454,7 +454,7 @@ int eepro100_initialize(bd_t * bis)
>  }
>
>
> -static int eepro100_init(struct eth_device *dev, bd_t * bis)
> +static int eepro100_init(struct eth_device *dev, bd_t *bis)
>  {
>         int i, status = -1;
>         int tx_cur;
> @@ -785,7 +785,7 @@ static void purge_tx_ring(struct eth_device *dev)
>         }
>  }
>
> -static void read_hw_addr(struct eth_device *dev, bd_t * bis)
> +static void read_hw_addr(struct eth_device *dev, bd_t *bis)
>  {
>         u16 sum = 0;
>         int i, j;
> --
> 2.25.1
>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
diff mbox series

Patch

diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index d367052cd2..2aad124ae5 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -203,9 +203,9 @@  static const char i82558_config_cmd[] = {
 static void init_rx_ring(struct eth_device *dev);
 static void purge_tx_ring(struct eth_device *dev);
 
-static void read_hw_addr(struct eth_device *dev, bd_t * bis);
+static void read_hw_addr(struct eth_device *dev, bd_t *bis);
 
-static int eepro100_init(struct eth_device *dev, bd_t * bis);
+static int eepro100_init(struct eth_device *dev, bd_t *bis);
 static int eepro100_send(struct eth_device *dev, void *packet, int length);
 static int eepro100_recv(struct eth_device *dev);
 static void eepro100_halt(struct eth_device *dev);
@@ -285,7 +285,7 @@  static int set_phyreg(struct eth_device *dev, unsigned char addr,
  * Check if given phyaddr is valid, i.e. there is a PHY connected.
  * Do this by checking model value field from ID2 register.
  */
-static struct eth_device* verify_phyaddr(const char *devname,
+static struct eth_device *verify_phyaddr(const char *devname,
 					 unsigned char addr)
 {
 	struct eth_device *dev;
@@ -372,7 +372,7 @@  static struct pci_device_id supported[] = {
 	{}
 };
 
-int eepro100_initialize(bd_t * bis)
+int eepro100_initialize(bd_t *bis)
 {
 	pci_dev_t devno;
 	int card_number = 0;
@@ -454,7 +454,7 @@  int eepro100_initialize(bd_t * bis)
 }
 
 
-static int eepro100_init(struct eth_device *dev, bd_t * bis)
+static int eepro100_init(struct eth_device *dev, bd_t *bis)
 {
 	int i, status = -1;
 	int tx_cur;
@@ -785,7 +785,7 @@  static void purge_tx_ring(struct eth_device *dev)
 	}
 }
 
-static void read_hw_addr(struct eth_device *dev, bd_t * bis)
+static void read_hw_addr(struct eth_device *dev, bd_t *bis)
 {
 	u16 sum = 0;
 	int i, j;