| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Bluetooth support for Realtek devices |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2015 Endless Mobile, Inc. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | 6 | */ |
|---|
| 17 | 7 | |
|---|
| 18 | 8 | #define RTL_FRAG_LEN 252 |
|---|
| .. | .. |
|---|
| 48 | 38 | struct rtl_vendor_config_entry { |
|---|
| 49 | 39 | __le16 offset; |
|---|
| 50 | 40 | __u8 len; |
|---|
| 51 | | - __u8 data[0]; |
|---|
| 41 | + __u8 data[]; |
|---|
| 52 | 42 | } __packed; |
|---|
| 53 | 43 | |
|---|
| 54 | 44 | struct rtl_vendor_config { |
|---|
| 55 | 45 | __le32 signature; |
|---|
| 56 | 46 | __le16 total_len; |
|---|
| 57 | | - struct rtl_vendor_config_entry entry[0]; |
|---|
| 47 | + struct rtl_vendor_config_entry entry[]; |
|---|
| 58 | 48 | } __packed; |
|---|
| 59 | 49 | |
|---|
| 60 | 50 | #if IS_ENABLED(CONFIG_BT_RTL) |
|---|