| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for the Conexant CX23885 PCIe bridge |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | 6 | */ |
|---|
| 17 | 7 | |
|---|
| 18 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 138 | 128 | V4L2_STD_PAL_60 | V4L2_STD_SECAM_L | V4L2_STD_SECAM_DK) |
|---|
| 139 | 129 | |
|---|
| 140 | 130 | struct cx23885_fmt { |
|---|
| 141 | | - char *name; |
|---|
| 142 | 131 | u32 fourcc; /* v4l2 format id */ |
|---|
| 143 | 132 | int depth; |
|---|
| 144 | 133 | int flags; |
|---|
| .. | .. |
|---|
| 247 | 236 | struct i2c_client i2c_client; |
|---|
| 248 | 237 | u32 i2c_rc; |
|---|
| 249 | 238 | |
|---|
| 250 | | - /* 885 registers used for raw addess */ |
|---|
| 239 | + /* 885 registers used for raw address */ |
|---|
| 251 | 240 | u32 i2c_period; |
|---|
| 252 | 241 | u32 reg_ctrl; |
|---|
| 253 | 242 | u32 reg_stat; |
|---|
| .. | .. |
|---|
| 336 | 325 | struct cx23885_riscmem risc; |
|---|
| 337 | 326 | void *vaddr; |
|---|
| 338 | 327 | struct scatterlist *sglist; |
|---|
| 339 | | - int sglen; |
|---|
| 340 | | - int nr_pages; |
|---|
| 328 | + int sglen; |
|---|
| 329 | + unsigned long nr_pages; |
|---|
| 341 | 330 | }; |
|---|
| 342 | 331 | |
|---|
| 343 | 332 | struct cx23885_audio_dev { |
|---|