diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-01-13 17:37:13 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-01-16 10:47:29 -0500 |
commit | 189e19e8cbb49f5bf483e55bdbd1e56d3d6bcf75 (patch) | |
tree | 8965cd03d125100f4788e69d2be0fcf92d31ed1f /drivers/nubus/proc.c | |
parent | 2f7dd07ecadac6bdc3d55c217d65efa2834ba1cb (diff) |
nubus: Rename struct nubus_dev
It is misleading to call a functional resource a "device". In adopting
the Linux Driver Model, the struct device will be embedded in struct
nubus_board. That will compound the terminlogy problem because drivers
will bind with boards, not with functional resources. Avoid this by
renaming struct nubus_dev as struct nubus_rsrc. "Functional resource"
is the vendor's terminology so this helps avoid confusion.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/nubus/proc.c')
-rw-r--r-- | drivers/nubus/proc.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/nubus/proc.c b/drivers/nubus/proc.c index f47d90924ab4..f2b118330be0 100644 --- a/drivers/nubus/proc.c +++ b/drivers/nubus/proc.c | |||
@@ -36,17 +36,14 @@ | |||
36 | static int | 36 | static int |
37 | nubus_devices_proc_show(struct seq_file *m, void *v) | 37 | nubus_devices_proc_show(struct seq_file *m, void *v) |
38 | { | 38 | { |
39 | struct nubus_dev *dev = nubus_devices; | 39 | struct nubus_rsrc *fres = nubus_func_rsrcs; |
40 | 40 | ||
41 | while (dev) { | 41 | while (fres) { |
42 | seq_printf(m, "%x\t%04x %04x %04x %04x", | 42 | seq_printf(m, "%x\t%04x %04x %04x %04x", |
43 | dev->board->slot, | 43 | fres->board->slot, fres->category, fres->type, |
44 | dev->category, | 44 | fres->dr_sw, fres->dr_hw); |
45 | dev->type, | 45 | seq_printf(m, "\t%08lx\n", fres->board->slot_addr); |
46 | dev->dr_sw, | 46 | fres = fres->next; |
47 | dev->dr_hw); | ||
48 | seq_printf(m, "\t%08lx\n", dev->board->slot_addr); | ||
49 | dev = dev->next; | ||
50 | } | 47 | } |
51 | return 0; | 48 | return 0; |
52 | } | 49 | } |