.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
13 | 4 | * |
---|
14 | 5 | * Image Sensor Interface (ISIF) driver |
---|
15 | 6 | * |
---|
.. | .. |
---|
38 | 29 | #include "ccdc_hw_device.h" |
---|
39 | 30 | |
---|
40 | 31 | /* 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 = { |
---|
42 | 33 | .linearize = { |
---|
43 | 34 | .en = 0, |
---|
44 | 35 | .corr_shft = ISIF_NO_SHIFT, |
---|
.. | .. |
---|
328 | 319 | if (bc->en) { |
---|
329 | 320 | val = bc->bc_mode_color << ISIF_BC_MODE_COLOR_SHIFT; |
---|
330 | 321 | |
---|
331 | | - /* Enable BC and horizontal clamp caculation paramaters */ |
---|
| 322 | + /* Enable BC and horizontal clamp calculation parameters */ |
---|
332 | 323 | val = val | 1 | (bc->horz.mode << ISIF_HORZ_BC_MODE_SHIFT); |
---|
333 | 324 | |
---|
334 | 325 | regw(val, CLAMPCFG); |
---|
.. | .. |
---|
358 | 349 | regw(bc->horz.win_start_v_calc, CLHWIN2); |
---|
359 | 350 | } |
---|
360 | 351 | |
---|
361 | | - /* vertical clamp caculation paramaters */ |
---|
| 352 | + /* vertical clamp calculation parameters */ |
---|
362 | 353 | |
---|
363 | 354 | /* Reset clamp value sel for previous line */ |
---|
364 | 355 | val |= |
---|
.. | .. |
---|
1054 | 1045 | status = -EBUSY; |
---|
1055 | 1046 | goto fail_nobase_res; |
---|
1056 | 1047 | } |
---|
1057 | | - addr = ioremap_nocache(res->start, resource_size(res)); |
---|
| 1048 | + addr = ioremap(res->start, resource_size(res)); |
---|
1058 | 1049 | if (!addr) { |
---|
1059 | 1050 | status = -ENOMEM; |
---|
1060 | 1051 | goto fail_base_iomap; |
---|