diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:03:30 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:03:30 -0500 |
| commit | 7affca3537d74365128e477b40c529d6f2fe86c8 (patch) | |
| tree | 20be92bd240029182fc89c2c4f25401b7715dcae /include/linux/debugfs.h | |
| parent | 356b95424cfb456e14a59eaa579422ce014c424b (diff) | |
| parent | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (diff) | |
Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
* 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (73 commits)
arm: fix up some samsung merge sysdev conversion problems
firmware: Fix an oops on reading fw_priv->fw in sysfs loading file
Drivers:hv: Fix a bug in vmbus_driver_unregister()
driver core: remove __must_check from device_create_file
debugfs: add missing #ifdef HAS_IOMEM
arm: time.h: remove device.h #include
driver-core: remove sysdev.h usage.
clockevents: remove sysdev.h
arm: convert sysdev_class to a regular subsystem
arm: leds: convert sysdev_class to a regular subsystem
kobject: remove kset_find_obj_hinted()
m86k: gpio - convert sysdev_class to a regular subsystem
mips: txx9_sram - convert sysdev_class to a regular subsystem
mips: 7segled - convert sysdev_class to a regular subsystem
sh: dma - convert sysdev_class to a regular subsystem
sh: intc - convert sysdev_class to a regular subsystem
power: suspend - convert sysdev_class to a regular subsystem
power: qe_ic - convert sysdev_class to a regular subsystem
power: cmm - convert sysdev_class to a regular subsystem
s390: time - convert sysdev_class to a regular subsystem
...
Fix up conflicts with 'struct sysdev' removal from various platform
drivers that got changed:
- arch/arm/mach-exynos/cpu.c
- arch/arm/mach-exynos/irq-eint.c
- arch/arm/mach-s3c64xx/common.c
- arch/arm/mach-s3c64xx/cpu.c
- arch/arm/mach-s5p64x0/cpu.c
- arch/arm/mach-s5pv210/common.c
- arch/arm/plat-samsung/include/plat/cpu.h
- arch/powerpc/kernel/sysfs.c
and fix up cpu_is_hotpluggable() as per Greg in include/linux/cpu.h
Diffstat (limited to 'include/linux/debugfs.h')
| -rw-r--r-- | include/linux/debugfs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index e7d9b20ddc5b..e8c3abc60811 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #define _DEBUGFS_H_ | 16 | #define _DEBUGFS_H_ |
| 17 | 17 | ||
| 18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
| 19 | #include <linux/seq_file.h> | ||
| 19 | 20 | ||
| 20 | #include <linux/types.h> | 21 | #include <linux/types.h> |
| 21 | 22 | ||
| @@ -26,6 +27,17 @@ struct debugfs_blob_wrapper { | |||
| 26 | unsigned long size; | 27 | unsigned long size; |
| 27 | }; | 28 | }; |
| 28 | 29 | ||
| 30 | struct debugfs_reg32 { | ||
| 31 | char *name; | ||
| 32 | unsigned long offset; | ||
| 33 | }; | ||
| 34 | |||
| 35 | struct debugfs_regset32 { | ||
| 36 | struct debugfs_reg32 *regs; | ||
| 37 | int nregs; | ||
| 38 | void __iomem *base; | ||
| 39 | }; | ||
| 40 | |||
| 29 | extern struct dentry *arch_debugfs_dir; | 41 | extern struct dentry *arch_debugfs_dir; |
| 30 | 42 | ||
| 31 | #if defined(CONFIG_DEBUG_FS) | 43 | #if defined(CONFIG_DEBUG_FS) |
| @@ -74,6 +86,13 @@ struct dentry *debugfs_create_blob(const char *name, mode_t mode, | |||
| 74 | struct dentry *parent, | 86 | struct dentry *parent, |
| 75 | struct debugfs_blob_wrapper *blob); | 87 | struct debugfs_blob_wrapper *blob); |
| 76 | 88 | ||
| 89 | struct dentry *debugfs_create_regset32(const char *name, mode_t mode, | ||
| 90 | struct dentry *parent, | ||
| 91 | struct debugfs_regset32 *regset); | ||
| 92 | |||
| 93 | int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs, | ||
| 94 | int nregs, void __iomem *base, char *prefix); | ||
| 95 | |||
| 77 | bool debugfs_initialized(void); | 96 | bool debugfs_initialized(void); |
| 78 | 97 | ||
| 79 | #else | 98 | #else |
| @@ -188,6 +207,13 @@ static inline struct dentry *debugfs_create_blob(const char *name, mode_t mode, | |||
| 188 | return ERR_PTR(-ENODEV); | 207 | return ERR_PTR(-ENODEV); |
| 189 | } | 208 | } |
| 190 | 209 | ||
| 210 | static inline struct dentry *debugfs_create_regset32(const char *name, | ||
| 211 | mode_t mode, struct dentry *parent, | ||
| 212 | struct debugfs_regset32 *regset) | ||
| 213 | { | ||
| 214 | return ERR_PTR(-ENODEV); | ||
| 215 | } | ||
| 216 | |||
| 191 | static inline bool debugfs_initialized(void) | 217 | static inline bool debugfs_initialized(void) |
| 192 | { | 218 | { |
| 193 | return false; | 219 | return false; |
