summaryrefslogtreecommitdiff
path: root/drivers/memory/samsung/exynos5422-dmc.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-07-24 21:08:57 +0300
committerKrzysztof Kozlowski <krzk@kernel.org>2020-08-17 15:37:59 +0300
commit911c94dac9525f4824661592611f169713d74d5f (patch)
tree3183813c6adae1bfa79067e3e3886ecf45bb54dc /drivers/memory/samsung/exynos5422-dmc.c
parent7f7d9e1e02f0e18275449489425058b639c970dc (diff)
downloadlinux-911c94dac9525f4824661592611f169713d74d5f.tar.xz
memory: samsung: exynos5422-dmc: Document mutex scope
Document scope of the mutex used by driver. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://lore.kernel.org/r/20200724180857.22119-1-krzk@kernel.org
Diffstat (limited to 'drivers/memory/samsung/exynos5422-dmc.c')
-rw-r--r--drivers/memory/samsung/exynos5422-dmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/memory/samsung/exynos5422-dmc.c b/drivers/memory/samsung/exynos5422-dmc.c
index 952bc61e68f4..0045fa536b2b 100644
--- a/drivers/memory/samsung/exynos5422-dmc.c
+++ b/drivers/memory/samsung/exynos5422-dmc.c
@@ -119,6 +119,7 @@ struct exynos5_dmc {
void __iomem *base_drexi0;
void __iomem *base_drexi1;
struct regmap *clk_regmap;
+ /* Protects curr_rate and frequency/voltage setting section */
struct mutex lock;
unsigned long curr_rate;
unsigned long curr_volt;