Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e2aeb5

Browse files
Chih-En Hsugregkh
Chih-En Hsu
authored andcommitted
nvmem: mtk-efuse: Remove EFUSE register write support
This patch is to remove function "mtk_reg_write" sinceMediatek EFUSE hardware only supports read functionalityfor NVMEM consumers.Fixes:ba360fd ("nvmem: mtk-efuse: remove nvmem regmap dependency")Acked-by: Andrew-CT Chen <andrew-ct.chen@mediatek.com>Signed-off-by: Chih-En Hsu <chih-en.hsu@mediatek.com>Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>Link:https://lore.kernel.org/r/20200917134437.16637-2-srinivas.kandagatla@linaro.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent1d62a2c commit8e2aeb5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

‎drivers/nvmem/mtk-efuse.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ static int mtk_reg_read(void *context,
2828
return0;
2929
}
3030

31-
staticintmtk_reg_write(void*context,
32-
unsignedintreg,void*_val,size_tbytes)
33-
{
34-
structmtk_efuse_priv*priv=context;
35-
u32*val=_val;
36-
inti=0,words=bytes /4;
37-
38-
while (words--)
39-
writel(*val++,priv->base+reg+ (i++*4));
40-
41-
return0;
42-
}
43-
4431
staticintmtk_efuse_probe(structplatform_device*pdev)
4532
{
4633
structdevice*dev=&pdev->dev;
@@ -61,7 +48,6 @@ static int mtk_efuse_probe(struct platform_device *pdev)
6148
econfig.stride=4;
6249
econfig.word_size=4;
6350
econfig.reg_read=mtk_reg_read;
64-
econfig.reg_write=mtk_reg_write;
6551
econfig.size=resource_size(res);
6652
econfig.priv=priv;
6753
econfig.dev=dev;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp