forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/w1/slaves/w1_ds2423.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * w1_ds2423.c
34 *
....@@ -6,20 +7,6 @@
67 * This driver will read and write the value of 4 counters to w1_slave file in
78 * sys filesystem.
89 * Inspired by the w1_therm and w1_ds2431 drivers.
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the therms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2310 */
2411
2512 #include <linux/kernel.h>
....@@ -130,7 +117,7 @@
130117 };
131118 ATTRIBUTE_GROUPS(w1_f1d);
132119
133
-static struct w1_family_ops w1_f1d_fops = {
120
+static const struct w1_family_ops w1_f1d_fops = {
134121 .groups = w1_f1d_groups,
135122 };
136123