hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/nvmem/mtk-efuse.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2015 MediaTek Inc.
34 * Author: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include <linux/device.h>
....@@ -36,19 +28,6 @@
3628 return 0;
3729 }
3830
39
-static int mtk_reg_write(void *context,
40
- unsigned int reg, void *_val, size_t bytes)
41
-{
42
- struct mtk_efuse_priv *priv = context;
43
- u32 *val = _val;
44
- int i = 0, words = bytes / 4;
45
-
46
- while (words--)
47
- writel(*val++, priv->base + reg + (i++ * 4));
48
-
49
- return 0;
50
-}
51
-
5231 static int mtk_efuse_probe(struct platform_device *pdev)
5332 {
5433 struct device *dev = &pdev->dev;
....@@ -69,7 +48,6 @@
6948 econfig.stride = 4;
7049 econfig.word_size = 4;
7150 econfig.reg_read = mtk_reg_read;
72
- econfig.reg_write = mtk_reg_write;
7351 econfig.size = resource_size(res);
7452 econfig.priv = priv;
7553 econfig.dev = dev;