.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 1-Wire implementation for the ds2781 chip |
---|
3 | 4 | * |
---|
4 | 5 | * Author: Renata Sayakhova <renata@oktetlabs.ru> |
---|
5 | 6 | * |
---|
6 | 7 | * 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 | | - * |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
142 | 138 | platform_device_unregister(pdev); |
---|
143 | 139 | } |
---|
144 | 140 | |
---|
145 | | -static struct w1_family_ops w1_ds2781_fops = { |
---|
| 141 | +static const struct w1_family_ops w1_ds2781_fops = { |
---|
146 | 142 | .add_slave = w1_ds2781_add_slave, |
---|
147 | 143 | .remove_slave = w1_ds2781_remove_slave, |
---|
148 | 144 | .groups = w1_ds2781_groups, |
---|