hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/i2c-mux.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 *
34 * i2c-mux.h - functions for the i2c-bus mux support
....@@ -5,21 +6,6 @@
56 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it>
67 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it>
78 * 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.
239 */
2410
2511 #ifndef _LINUX_I2C_MUX_H
....@@ -43,7 +29,7 @@
4329
4430 int num_adapters;
4531 int max_adapters;
46
- struct i2c_adapter *adapter[0];
32
+ struct i2c_adapter *adapter[];
4733 };
4834
4935 struct i2c_mux_core *i2c_mux_alloc(struct i2c_adapter *parent,