hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/bluetooth/btrtl.h
....@@ -1,18 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Bluetooth support for Realtek devices
34 *
45 * 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
- *
166 */
177
188 #define RTL_FRAG_LEN 252
....@@ -48,13 +38,13 @@
4838 struct rtl_vendor_config_entry {
4939 __le16 offset;
5040 __u8 len;
51
- __u8 data[0];
41
+ __u8 data[];
5242 } __packed;
5343
5444 struct rtl_vendor_config {
5545 __le32 signature;
5646 __le16 total_len;
57
- struct rtl_vendor_config_entry entry[0];
47
+ struct rtl_vendor_config_entry entry[];
5848 } __packed;
5949
6050 #if IS_ENABLED(CONFIG_BT_RTL)