| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Enclosure Services |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | **----------------------------------------------------------------------------- |
|---|
| 7 | 8 | ** |
|---|
| 8 | | -** This program is free software; you can redistribute it and/or |
|---|
| 9 | | -** modify it under the terms of the GNU General Public License |
|---|
| 10 | | -** version 2 as published by the Free Software Foundation. |
|---|
| 11 | | -** |
|---|
| 12 | | -** This program is distributed in the hope that it will be useful, |
|---|
| 13 | | -** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | | -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | -** GNU General Public License for more details. |
|---|
| 16 | | -** |
|---|
| 17 | | -** You should have received a copy of the GNU General Public License |
|---|
| 18 | | -** along with this program; if not, write to the Free Software |
|---|
| 19 | | -** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 20 | 9 | ** |
|---|
| 21 | 10 | **----------------------------------------------------------------------------- |
|---|
| 22 | 11 | */ |
|---|
| .. | .. |
|---|
| 112 | 101 | struct device edev; |
|---|
| 113 | 102 | struct enclosure_component_callbacks *cb; |
|---|
| 114 | 103 | int components; |
|---|
| 115 | | - struct enclosure_component component[0]; |
|---|
| 104 | + struct enclosure_component component[]; |
|---|
| 116 | 105 | }; |
|---|
| 117 | 106 | |
|---|
| 118 | 107 | static inline struct enclosure_device * |
|---|