.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2007, 2011 Wolfgang Grandegger <wg@grandegger.com> |
---|
3 | 4 | * Copyright (C) 2012 Stephane Grosjean <s.grosjean@peak-system.com> |
---|
.. | .. |
---|
5 | 6 | * Derived from the PCAN project file driver/src/pcan_pci.c: |
---|
6 | 7 | * |
---|
7 | 8 | * Copyright (C) 2001-2006 PEAK System-Technik GmbH |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the version 2 of the GNU General Public License |
---|
11 | | - * as published by the Free Software Foundation |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | 9 | */ |
---|
18 | 10 | |
---|
19 | 11 | #include <linux/kernel.h> |
---|
.. | .. |
---|
105 | 97 | /* GPIOICR byte access offsets */ |
---|
106 | 98 | #define PITA_GPOUT 0x18 /* GPx output value */ |
---|
107 | 99 | #define PITA_GPIN 0x19 /* GPx input value */ |
---|
108 | | -#define PITA_GPOEN 0x1A /* configure GPx as ouput pin */ |
---|
| 100 | +#define PITA_GPOEN 0x1A /* configure GPx as output pin */ |
---|
109 | 101 | |
---|
110 | 102 | /* I2C GP bits */ |
---|
111 | 103 | #define PITA_GPIN_SCL 0x01 /* Serial Clock Line */ |
---|
.. | .. |
---|
425 | 417 | peak_pci_write_reg(priv, port, val); |
---|
426 | 418 | } |
---|
427 | 419 | |
---|
428 | | -static struct i2c_algo_bit_data peak_pciec_i2c_bit_ops = { |
---|
| 420 | +static const struct i2c_algo_bit_data peak_pciec_i2c_bit_ops = { |
---|
429 | 421 | .setsda = pita_setsda, |
---|
430 | 422 | .setscl = pita_setscl, |
---|
431 | 423 | .getsda = pita_getsda, |
---|