| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * w1_ds2406.c - w1 family 12 (DS2406) driver |
|---|
| 3 | 4 | * based on w1_ds2413.c by Mariusz Bialonczyk <manio@skyboo.net> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (c) 2014 Scott Alfter <scott@alfter.us> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This source code is licensed under the GNU General Public License, |
|---|
| 8 | | - * Version 2. See the file COPYING for more details. |
|---|
| 9 | 7 | */ |
|---|
| 10 | 8 | |
|---|
| 11 | 9 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 140 | 138 | &(w1_f12_sysfs_bin_files[i])); |
|---|
| 141 | 139 | } |
|---|
| 142 | 140 | |
|---|
| 143 | | -static struct w1_family_ops w1_f12_fops = { |
|---|
| 141 | +static const struct w1_family_ops w1_f12_fops = { |
|---|
| 144 | 142 | .add_slave = w1_f12_add_slave, |
|---|
| 145 | 143 | .remove_slave = w1_f12_remove_slave, |
|---|
| 146 | 144 | }; |
|---|