mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
proc: remove ->get_info infrastructure
Now that last dozen or so users of ->get_info were removed, ditch it too.
Everyone sane shouldd have switched to seq_file interface long ago.
P.S.: Co-existing 3 interfaces (->get_info/->read_proc/->proc_fops) for proc
is long-standing crap, BTW, thus
a) put ->read_proc/->write_proc/read_proc_entry() users on death row,
b) new such users should be rejected,
c) everyone is encouraged to convert his favourite ->read_proc user or
I'll do it, lazy bastards.
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
352ced8e59
commit
8731f14d37
2 changed files with 2 additions and 20 deletions
|
|
@ -69,12 +69,7 @@ proc_file_read(struct file *file, char __user *buf, size_t nbytes,
|
|||
count = min_t(size_t, PROC_BLOCK_SIZE, nbytes);
|
||||
|
||||
start = NULL;
|
||||
if (dp->get_info) {
|
||||
/* Handle old net routines */
|
||||
n = dp->get_info(page, &start, *ppos, count);
|
||||
if (n < count)
|
||||
eof = 1;
|
||||
} else if (dp->read_proc) {
|
||||
if (dp->read_proc) {
|
||||
/*
|
||||
* How to be a proc read function
|
||||
* ------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue