forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/platform/davinci/isif.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2008-2009 Texas Instruments Inc
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
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.
134 *
145 * Image Sensor Interface (ISIF) driver
156 *
....@@ -38,7 +29,7 @@
3829 #include "ccdc_hw_device.h"
3930
4031 /* Defaults for module configuration parameters */
41
-static struct isif_config_params_raw isif_config_defaults = {
32
+static const struct isif_config_params_raw isif_config_defaults = {
4233 .linearize = {
4334 .en = 0,
4435 .corr_shft = ISIF_NO_SHIFT,
....@@ -328,7 +319,7 @@
328319 if (bc->en) {
329320 val = bc->bc_mode_color << ISIF_BC_MODE_COLOR_SHIFT;
330321
331
- /* Enable BC and horizontal clamp caculation paramaters */
322
+ /* Enable BC and horizontal clamp calculation parameters */
332323 val = val | 1 | (bc->horz.mode << ISIF_HORZ_BC_MODE_SHIFT);
333324
334325 regw(val, CLAMPCFG);
....@@ -358,7 +349,7 @@
358349 regw(bc->horz.win_start_v_calc, CLHWIN2);
359350 }
360351
361
- /* vertical clamp caculation paramaters */
352
+ /* vertical clamp calculation parameters */
362353
363354 /* Reset clamp value sel for previous line */
364355 val |=
....@@ -1054,7 +1045,7 @@
10541045 status = -EBUSY;
10551046 goto fail_nobase_res;
10561047 }
1057
- addr = ioremap_nocache(res->start, resource_size(res));
1048
+ addr = ioremap(res->start, resource_size(res));
10581049 if (!addr) {
10591050 status = -ENOMEM;
10601051 goto fail_base_iomap;