proc: introduce proc_create_single{,_data}
authorChristoph Hellwig <hch@lst.de>
Tue, 15 May 2018 13:57:23 +0000 (15:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:23:35 +0000 (07:23 +0200)
commit3f3942aca6da351a12543aa776467791b63b3a78
tree31030e086ea36920e07078ea2289b9b72c0b2939
parent44414d82cfe0f68cb59d0a42f599ccd893ae0032
proc: introduce proc_create_single{,_data}

Variants of proc_create{,_data} that directly take a seq_file show
callback and drastically reduces the boilerplate code in the callers.

All trivial callers converted over.

Signed-off-by: Christoph Hellwig <hch@lst.de>
85 files changed:
arch/arm/kernel/dma.c
arch/arm/kernel/swp_emulate.c
arch/arm/mach-rpc/ecard.c
arch/ia64/kernel/palinfo.c
arch/ia64/kernel/salinfo.c
arch/ia64/sn/kernel/sn2/prominfo_proc.c
arch/ia64/sn/kernel/sn2/sn_proc_fs.c
arch/m68k/kernel/setup_mm.c
arch/mips/pci/ops-pmcmsp.c
arch/mips/sibyte/common/bus_watcher.c
arch/parisc/kernel/pci-dma.c
arch/parisc/kernel/pdc_chassis.c
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/rtas-proc.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/s390/kernel/sysinfo.c
arch/sh/drivers/dma/dma-api.c
arch/sparc/kernel/ioport.c
arch/um/drivers/ubd_kern.c
arch/x86/kernel/apm_32.c
drivers/acpi/ac.c
drivers/acpi/button.c
drivers/block/DAC960.c
drivers/block/pktcdvd.c
drivers/block/ps3vram.c
drivers/char/apm-emulation.c
drivers/char/ds1620.c
drivers/char/efirtc.c
drivers/char/nvram.c
drivers/char/rtc.c
drivers/char/toshiba.c
drivers/connector/connector.c
drivers/input/misc/hp_sdc_rtc.c
drivers/isdn/capi/capi.c
drivers/isdn/capi/capidrv.c
drivers/isdn/hardware/eicon/diva_didd.c
drivers/isdn/hardware/eicon/divasi.c
drivers/macintosh/via-pmu.c
drivers/media/pci/saa7164/saa7164-core.c
drivers/media/pci/zoran/videocodec.c
drivers/message/fusion/mptbase.c
drivers/mtd/mtdcore.c
drivers/net/wireless/atmel/atmel.c
drivers/net/wireless/intersil/hostap/hostap_ap.c
drivers/net/wireless/ray_cs.c
drivers/nubus/proc.c
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c
drivers/platform/x86/toshiba_acpi.c
drivers/pnp/pnpbios/proc.c
drivers/staging/comedi/proc.c
drivers/usb/gadget/udc/at91_udc.c
drivers/usb/gadget/udc/fsl_udc_core.c
drivers/usb/gadget/udc/goku_udc.c
drivers/usb/gadget/udc/omap_udc.c
drivers/video/fbdev/via/viafbdev.c
fs/cifs/cifs_debug.c
fs/f2fs/sysfs.c
fs/filesystems.c
fs/fscache/internal.h
fs/fscache/proc.c
fs/fscache/stats.c
fs/proc/cmdline.c
fs/proc/generic.c
fs/proc/internal.h
fs/proc/loadavg.c
fs/proc/meminfo.c
fs/proc/softirqs.c
fs/proc/uptime.c
fs/proc/version.c
fs/reiserfs/procfs.c
fs/xfs/xfs_stats.c
include/linux/proc_fs.h
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c
kernel/dma.c
kernel/exec_domain.c
kernel/irq/proc.c
kernel/locking/lockdep_proc.c
net/8021q/vlanproc.c
net/ipv4/ipconfig.c
net/ipv4/route.c
net/ipv6/proc.c
net/sched/sch_api.c