forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/mediatek/mtk_cec.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014 MediaTek Inc.
34 * Author: Jie Qiu <jie.qiu@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 #include <linux/clk.h>
157 #include <linux/delay.h>
....@@ -92,7 +84,7 @@
9284 u32 tmp = readl(cec->regs + offset) & ~mask;
9385
9486 tmp |= val & mask;
95
- writel(val, cec->regs + offset);
87
+ writel(tmp, cec->regs + offset);
9688 }
9789
9890 void mtk_cec_set_hpd_event(struct device *dev,