hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/w1/w1.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net>
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
156 #include <linux/delay.h>
....@@ -169,7 +160,7 @@
169160 NULL,
170161 };
171162
172
-static struct w1_family_ops w1_default_fops = {
163
+static const struct w1_family_ops w1_default_fops = {
173164 .groups = w1_slave_default_groups,
174165 };
175166
....@@ -622,7 +613,7 @@
622613
623614 static int w1_family_notify(unsigned long action, struct w1_slave *sl)
624615 {
625
- struct w1_family_ops *fops;
616
+ const struct w1_family_ops *fops;
626617 int err;
627618
628619 fops = sl->family->fops;