.. | .. |
---|
| 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 | #ifndef __LINUX_W1_H |
---|
.. | .. |
---|
127 | 118 | * w1_master* is passed to the slave found callback. |
---|
128 | 119 | * u8 is search_type, W1_SEARCH or W1_ALARM_SEARCH |
---|
129 | 120 | * |
---|
| 121 | + * @dev_id: Optional device id string, which w1 slaves could use for |
---|
| 122 | + * creating names, which then give a connection to the w1 master |
---|
| 123 | + * |
---|
130 | 124 | * Note: read_bit and write_bit are very low level functions and should only |
---|
131 | 125 | * be used with hardware that doesn't really support 1-wire operations, |
---|
132 | 126 | * like a parallel/serial port. |
---|
.. | .. |
---|
159 | 153 | |
---|
160 | 154 | void (*search)(void *, struct w1_master *, |
---|
161 | 155 | u8, w1_slave_found_callback); |
---|
| 156 | + |
---|
| 157 | + char *dev_id; |
---|
162 | 158 | }; |
---|
163 | 159 | |
---|
164 | 160 | /** |
---|
.. | .. |
---|
266 | 262 | * @family_entry: family linked list |
---|
267 | 263 | * @fid: 8 bit family identifier |
---|
268 | 264 | * @fops: operations for this family |
---|
| 265 | + * @of_match_table: open firmware match table |
---|
269 | 266 | * @refcnt: reference counter |
---|
270 | 267 | */ |
---|
271 | 268 | struct w1_family { |
---|
272 | 269 | struct list_head family_entry; |
---|
273 | 270 | u8 fid; |
---|
274 | 271 | |
---|
275 | | - struct w1_family_ops *fops; |
---|
| 272 | + const struct w1_family_ops *fops; |
---|
276 | 273 | |
---|
277 | 274 | const struct of_device_id *of_match_table; |
---|
278 | 275 | |
---|