hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/platform/rockchip/rga/rga-hw.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
34 * Author: Jacob Chen <jacob-chen@iotwrt.com>
4
- *
5
- * This software is licensed under the terms of the GNU General Public
6
- * License version 2, as published by the Free Software Foundation, and
7
- * may be copied, distributed, and modified under those terms.
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/pm_runtime.h>
....@@ -259,7 +251,7 @@
259251 }
260252
261253 /*
262
- * Cacluate the up/down scaling mode/factor.
254
+ * Calculate the up/down scaling mode/factor.
263255 *
264256 * RGA used to scale the picture first, and then rotate second,
265257 * so we need to swap the w/h when rotate degree is 90/270.
....@@ -307,7 +299,7 @@
307299 }
308300
309301 /*
310
- * Cacluate the framebuffer virtual strides and active size,
302
+ * Calculate the framebuffer virtual strides and active size,
311303 * note that the step of vir_stride / vir_width is 4 byte words
312304 */
313305 src_vir_info.data.vir_stride = ctx->in.stride >> 2;
....@@ -321,7 +313,7 @@
321313 dst_act_info.data.act_width = dst_w - 1;
322314
323315 /*
324
- * Cacluate the source framebuffer base address with offset pixel.
316
+ * Calculate the source framebuffer base address with offset pixel.
325317 */
326318 src_offsets = rga_get_addr_offset(&ctx->in, src_x, src_y,
327319 src_w, src_h);