aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/me-debugfs.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-16 05:00:12 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-21 05:12:56 -0400
commit47fa0c0251413db66a9018fbac6f6266201195ae (patch)
tree888319389bc7f02d0711c4363e4ac8782d72fd26 /arch/mips/math-emu/me-debugfs.c
parent85c51c511d6373d4bc859458fd3f130015db31a5 (diff)
MIPS: math-emu: Reformat code according to coding style.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/me-debugfs.c')
-rw-r--r--arch/mips/math-emu/me-debugfs.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/mips/math-emu/me-debugfs.c b/arch/mips/math-emu/me-debugfs.c
index d895b38773df..95ed9f9bd2b0 100644
--- a/arch/mips/math-emu/me-debugfs.c
+++ b/arch/mips/math-emu/me-debugfs.c
@@ -38,14 +38,17 @@ static int __init debugfs_fpuemu(void)
38 if (!dir) 38 if (!dir)
39 return -ENOMEM; 39 return -ENOMEM;
40 40
41#define FPU_STAT_CREATE(M) \ 41#define FPU_EMU_STAT_OFFSET(m) \
42 do { \ 42 offsetof(struct mips_fpu_emulator_stats, m)
43 d = debugfs_create_file(#M , S_IRUGO, dir, \ 43
44 (void *)offsetof(struct mips_fpu_emulator_stats, M), \ 44#define FPU_STAT_CREATE(m) \
45 &fops_fpuemu_stat); \ 45do { \
46 if (!d) \ 46 d = debugfs_create_file(#m , S_IRUGO, dir, \
47 return -ENOMEM; \ 47 (void *)FPU_EMU_STAT_OFFSET(m), \
48 } while (0) 48 &fops_fpuemu_stat); \
49 if (!d) \
50 return -ENOMEM; \
51} while (0)
49 52
50 FPU_STAT_CREATE(emulated); 53 FPU_STAT_CREATE(emulated);
51 FPU_STAT_CREATE(loads); 54 FPU_STAT_CREATE(loads);