]> git.hungrycats.org Git - linux/commit
[netdrvr sk98lin] use seq_file for /proc
authorStephen Hemminger <shemminger@osdl.org>
Sat, 27 Sep 2003 01:51:14 +0000 (21:51 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Sat, 27 Sep 2003 01:51:14 +0000 (21:51 -0400)
commitdefce4ed1c3a2caf760b43ebd3ad5fd5ce374fbc
tree1b69123e6bb7377188fbfc4bc957c0f42da31c61
parent3d93561da888a5e334904264280f757e8452a1e1
[netdrvr sk98lin] use seq_file for /proc

Replace proc_read with seq_file interface which is much cleaner.

Also, instead of searching the list of devices looking for the
name which is slow and would break if interface name changes;
store a pointer to device in the proc entry, and retrieve
it from the information saved by single_open.

Formatting and other behaviours are retained.
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skproc.c