| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 1-Wire implementation for the ds2780 chip |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * Author: Clifton Barnes <cabarnes@indesign-llc.com> |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * 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 | | - * |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | |
|---|
| 16 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 145 | 141 | platform_device_unregister(pdev); |
|---|
| 146 | 142 | } |
|---|
| 147 | 143 | |
|---|
| 148 | | -static struct w1_family_ops w1_ds2780_fops = { |
|---|
| 144 | +static const struct w1_family_ops w1_ds2780_fops = { |
|---|
| 149 | 145 | .add_slave = w1_ds2780_add_slave, |
|---|
| 150 | 146 | .remove_slave = w1_ds2780_remove_slave, |
|---|
| 151 | 147 | .groups = w1_ds2780_groups, |
|---|