| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net> |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 4 | */ |
|---|
| 14 | 5 | |
|---|
| 15 | 6 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 169 | 160 | NULL, |
|---|
| 170 | 161 | }; |
|---|
| 171 | 162 | |
|---|
| 172 | | -static struct w1_family_ops w1_default_fops = { |
|---|
| 163 | +static const struct w1_family_ops w1_default_fops = { |
|---|
| 173 | 164 | .groups = w1_slave_default_groups, |
|---|
| 174 | 165 | }; |
|---|
| 175 | 166 | |
|---|
| .. | .. |
|---|
| 622 | 613 | |
|---|
| 623 | 614 | static int w1_family_notify(unsigned long action, struct w1_slave *sl) |
|---|
| 624 | 615 | { |
|---|
| 625 | | - struct w1_family_ops *fops; |
|---|
| 616 | + const struct w1_family_ops *fops; |
|---|
| 626 | 617 | int err; |
|---|
| 627 | 618 | |
|---|
| 628 | 619 | fops = sl->family->fops; |
|---|