forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/w1/slaves/w1_ds2405.c
....@@ -1,19 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * w1_ds2405.c
34 *
45 * Copyright (c) 2017 Maciej S. Szmigiero <mail@maciej.szmigiero.name>
56 * Based on w1_therm.c copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net>
6
- *
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the therms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
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.
177 */
188
199 #include <linux/device.h>
....@@ -216,7 +206,7 @@
216206
217207 ATTRIBUTE_GROUPS(w1_ds2405);
218208
219
-static struct w1_family_ops w1_ds2405_fops = {
209
+static const struct w1_family_ops w1_ds2405_fops = {
220210 .groups = w1_ds2405_groups
221211 };
222212