.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * i2c-mux.h - functions for the i2c-bus mux support |
---|
.. | .. |
---|
5 | 6 | * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it> |
---|
6 | 7 | * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it> |
---|
7 | 8 | * Michael Lawnick <michael.lawnick.ext@nsn.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
12 | | - * (at your option) any later version. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, |
---|
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | | - * GNU General Public License for more details. |
---|
18 | | - * |
---|
19 | | - * You should have received a copy of the GNU General Public License |
---|
20 | | - * along with this program; if not, write to the Free Software |
---|
21 | | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
---|
22 | | - * MA 02110-1301 USA. |
---|
23 | 9 | */ |
---|
24 | 10 | |
---|
25 | 11 | #ifndef _LINUX_I2C_MUX_H |
---|
.. | .. |
---|
43 | 29 | |
---|
44 | 30 | int num_adapters; |
---|
45 | 31 | int max_adapters; |
---|
46 | | - struct i2c_adapter *adapter[0]; |
---|
| 32 | + struct i2c_adapter *adapter[]; |
---|
47 | 33 | }; |
---|
48 | 34 | |
---|
49 | 35 | struct i2c_mux_core *i2c_mux_alloc(struct i2c_adapter *parent, |
---|