diff options
author | Richard Zhao <richard.zhao@linaro.org> | 2012-05-13 01:18:02 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 15:27:07 (GMT) |
commit | b09530ef844f0bf29ed3677080c02b179be84818 (patch) | |
tree | ed2d3e791823a3e394f0718815895aee37114bfe /include | |
parent | 08b4c118af35d4d67eca2052aaa8d4a5f7d0aecb (diff) | |
download | linux-fsl-qoriq-b09530ef844f0bf29ed3677080c02b179be84818.tar.xz |
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')
-rw-r--r-- | include/linux/mfd/anatop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/anatop.h b/include/linux/mfd/anatop.h index 22c1007..7f92acf 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 */ |