summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorRichard Zhao <richard.zhao@linaro.org>2012-05-13 09:18:02 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-20 17:27:07 +0200
commitb09530ef844f0bf29ed3677080c02b179be84818 (patch)
treeed2d3e791823a3e394f0718815895aee37114bfe /include/linux/mfd
parent08b4c118af35d4d67eca2052aaa8d4a5f7d0aecb (diff)
downloadlinux-stable-b09530ef844f0bf29ed3677080c02b179be84818.tar.gz
linux-stable-b09530ef844f0bf29ed3677080c02b179be84818.tar.bz2
linux-stable-b09530ef844f0bf29ed3677080c02b179be84818.zip
mfd: Make anatop register accessor more flexible and rename meaningfully
- rename to anatop_read_reg and anatop_write_reg - anatop_read_reg directly return reg value - anatop_write_reg write reg with mask Signed-off-by: Richard Zhao <richard.zhao@freescale.com> Reviewed-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/anatop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/anatop.h b/include/linux/mfd/anatop.h
index 22c1007d3ec5..7f92acf03d9e 100644
--- a/include/linux/mfd/anatop.h
+++ b/include/linux/mfd/anatop.h
@@ -34,7 +34,7 @@ struct anatop {
spinlock_t reglock;
};
-extern u32 anatop_get_bits(struct anatop *, u32, int, int);
-extern void anatop_set_bits(struct anatop *, u32, int, int, u32);
+extern u32 anatop_read_reg(struct anatop *, u32);
+extern void anatop_write_reg(struct anatop *, u32, u32, u32);
#endif /* __LINUX_MFD_ANATOP_H */