hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/can/sja1000/peak_pci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2007, 2011 Wolfgang Grandegger <wg@grandegger.com>
34 * Copyright (C) 2012 Stephane Grosjean <s.grosjean@peak-system.com>
....@@ -5,15 +6,6 @@
56 * Derived from the PCAN project file driver/src/pcan_pci.c:
67 *
78 * 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.
179 */
1810
1911 #include <linux/kernel.h>
....@@ -105,7 +97,7 @@
10597 /* GPIOICR byte access offsets */
10698 #define PITA_GPOUT 0x18 /* GPx output value */
10799 #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 */
109101
110102 /* I2C GP bits */
111103 #define PITA_GPIN_SCL 0x01 /* Serial Clock Line */
....@@ -425,7 +417,7 @@
425417 peak_pci_write_reg(priv, port, val);
426418 }
427419
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 = {
429421 .setsda = pita_setsda,
430422 .setscl = pita_setscl,
431423 .getsda = pita_getsda,