hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/w1/slaves/w1_ds2781.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 1-Wire implementation for the ds2781 chip
34 *
45 * Author: Renata Sayakhova <renata@oktetlabs.ru>
56 *
67 * Based on w1-ds2780 driver
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
128 */
139
1410 #include <linux/kernel.h>
....@@ -142,7 +138,7 @@
142138 platform_device_unregister(pdev);
143139 }
144140
145
-static struct w1_family_ops w1_ds2781_fops = {
141
+static const struct w1_family_ops w1_ds2781_fops = {
146142 .add_slave = w1_ds2781_add_slave,
147143 .remove_slave = w1_ds2781_remove_slave,
148144 .groups = w1_ds2781_groups,