mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull procfs updates from Al Viro:
"Christoph's proc_create_... cleanups series"
* 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (44 commits)
xfs, proc: hide unused xfs procfs helpers
isdn/gigaset: add back gigaset_procinfo assignment
proc: update SIZEOF_PDE_INLINE_NAME for the new pde fields
tty: replace ->proc_fops with ->proc_show
ide: replace ->proc_fops with ->proc_show
ide: remove ide_driver_proc_write
isdn: replace ->proc_fops with ->proc_show
atm: switch to proc_create_seq_private
atm: simplify procfs code
bluetooth: switch to proc_create_seq_data
netfilter/x_tables: switch to proc_create_seq_private
netfilter/xt_hashlimit: switch to proc_create_{seq,single}_data
neigh: switch to proc_create_seq_data
hostap: switch to proc_create_{seq,single}_data
bonding: switch to proc_create_seq_data
rtc/proc: switch to proc_create_single_data
drbd: switch to proc_create_single
resource: switch to proc_create_seq_data
staging/rtl8192u: simplify procfs code
jfs: simplify procfs code
...
This commit is contained in:
commit
cf626b0da7
266 changed files with 1229 additions and 6032 deletions
|
|
@ -197,9 +197,9 @@ static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_valu
|
|||
static int mpt_host_page_alloc(MPT_ADAPTER *ioc, pIOCInit_t ioc_init);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
static const struct file_operations mpt_summary_proc_fops;
|
||||
static const struct file_operations mpt_version_proc_fops;
|
||||
static const struct file_operations mpt_iocinfo_proc_fops;
|
||||
static int mpt_summary_proc_show(struct seq_file *m, void *v);
|
||||
static int mpt_version_proc_show(struct seq_file *m, void *v);
|
||||
static int mpt_iocinfo_proc_show(struct seq_file *m, void *v);
|
||||
#endif
|
||||
static void mpt_get_fw_exp_ver(char *buf, MPT_ADAPTER *ioc);
|
||||
|
||||
|
|
@ -2040,8 +2040,10 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
*/
|
||||
dent = proc_mkdir(ioc->name, mpt_proc_root_dir);
|
||||
if (dent) {
|
||||
proc_create_data("info", S_IRUGO, dent, &mpt_iocinfo_proc_fops, ioc);
|
||||
proc_create_data("summary", S_IRUGO, dent, &mpt_summary_proc_fops, ioc);
|
||||
proc_create_single_data("info", S_IRUGO, dent,
|
||||
mpt_iocinfo_proc_show, ioc);
|
||||
proc_create_single_data("summary", S_IRUGO, dent,
|
||||
mpt_summary_proc_show, ioc);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -6606,8 +6608,10 @@ procmpt_create(void)
|
|||
if (mpt_proc_root_dir == NULL)
|
||||
return -ENOTDIR;
|
||||
|
||||
proc_create("summary", S_IRUGO, mpt_proc_root_dir, &mpt_summary_proc_fops);
|
||||
proc_create("version", S_IRUGO, mpt_proc_root_dir, &mpt_version_proc_fops);
|
||||
proc_create_single("summary", S_IRUGO, mpt_proc_root_dir,
|
||||
mpt_summary_proc_show);
|
||||
proc_create_single("version", S_IRUGO, mpt_proc_root_dir,
|
||||
mpt_version_proc_show);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -6646,19 +6650,6 @@ static int mpt_summary_proc_show(struct seq_file *m, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int mpt_summary_proc_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, mpt_summary_proc_show, PDE_DATA(inode));
|
||||
}
|
||||
|
||||
static const struct file_operations mpt_summary_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = mpt_summary_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
|
||||
static int mpt_version_proc_show(struct seq_file *m, void *v)
|
||||
{
|
||||
u8 cb_idx;
|
||||
|
|
@ -6701,19 +6692,6 @@ static int mpt_version_proc_show(struct seq_file *m, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int mpt_version_proc_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, mpt_version_proc_show, NULL);
|
||||
}
|
||||
|
||||
static const struct file_operations mpt_version_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = mpt_version_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
|
||||
static int mpt_iocinfo_proc_show(struct seq_file *m, void *v)
|
||||
{
|
||||
MPT_ADAPTER *ioc = m->private;
|
||||
|
|
@ -6793,19 +6771,6 @@ static int mpt_iocinfo_proc_show(struct seq_file *m, void *v)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mpt_iocinfo_proc_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, mpt_iocinfo_proc_show, PDE_DATA(inode));
|
||||
}
|
||||
|
||||
static const struct file_operations mpt_iocinfo_proc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = mpt_iocinfo_proc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
#endif /* CONFIG_PROC_FS } */
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue