pci: rename device->linux_dev
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 29 Aug 2019 15:07:03 +0000 (11:07 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:10 +0000 (17:11 -0400)
commit91f3599c97f9c2001150a9cfc322ce0de93637d1
tree1fe26a13d7553604681469e510b9b4ba8feb6f36
parent54ac2955744a4e23136c0cf32c23c6ccec143a25
pci: rename device->linux_dev

We have dev_id, which is Linux's device.  We had device, which was
Linux's dev.  We also have 'dev', which is encoded in Linux's devfn.
This was a mess, especially since when we spatched dev to device, that
collided with other uses of device (meaning dev_id) in Linux.

Anyway, we aren't even using linux_dev nee device, it was just a source
of confusion for me.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
22 files changed:
kern/arch/x86/pci.h
kern/drivers/net/bnx2x/bnx2x.h
kern/drivers/net/bnx2x/bnx2x_cmn.h
kern/drivers/net/bnx2x/bnx2x_main.c
kern/drivers/net/mlx4/alloc.c
kern/drivers/net/mlx4/cmd.c
kern/drivers/net/mlx4/en_clock.c
kern/drivers/net/mlx4/en_cq.c
kern/drivers/net/mlx4/en_main.c
kern/drivers/net/mlx4/en_netdev.c
kern/drivers/net/mlx4/en_rx.c
kern/drivers/net/mlx4/en_tx.c
kern/drivers/net/mlx4/eq.c
kern/drivers/net/mlx4/icm.c
kern/drivers/net/mlx4/main.c
kern/drivers/net/mlx4/mlx4.h
kern/drivers/net/mlx4/mlx4_en.h
kern/drivers/net/mlx4/mr.c
kern/drivers/net/mlx4u/mr.c
kern/drivers/net/r8169.c
kern/include/linux/compat_todo.h
scripts/spatch/linux/scalar.cocci