mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
proc: Supply PDE attribute setting accessor functions
Supply accessor functions to set attributes in proc_dir_entry structs. The following are supplied: proc_set_size() and proc_set_user(). Signed-off-by: David Howells <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
2f96b8c1d5
commit
271a15eabe
14 changed files with 40 additions and 35 deletions
|
|
@ -105,7 +105,7 @@ static int isapnp_proc_attach_device(struct pnp_dev *dev)
|
|||
&isapnp_proc_bus_file_operations, dev);
|
||||
if (!e)
|
||||
return -ENOMEM;
|
||||
e->size = 256;
|
||||
proc_set_size(e, 256);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue