hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/w1/slaves/w1_ds2780.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 1-Wire implementation for the ds2780 chip
34 *
....@@ -6,11 +7,6 @@
67 * Author: Clifton Barnes <cabarnes@indesign-llc.com>
78 *
89 * Based on w1-ds2760 driver
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
13
- *
1410 */
1511
1612 #include <linux/kernel.h>
....@@ -145,7 +141,7 @@
145141 platform_device_unregister(pdev);
146142 }
147143
148
-static struct w1_family_ops w1_ds2780_fops = {
144
+static const struct w1_family_ops w1_ds2780_fops = {
149145 .add_slave = w1_ds2780_add_slave,
150146 .remove_slave = w1_ds2780_remove_slave,
151147 .groups = w1_ds2780_groups,