| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Bluetooth HCI UART driver for Intel/AG6xx devices |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2016 Intel Corporation |
|---|
| 6 | | - * |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | | - * |
|---|
| 22 | 7 | */ |
|---|
| 23 | 8 | |
|---|
| 24 | 9 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 42 | 27 | struct pbn_entry { |
|---|
| 43 | 28 | __le32 addr; |
|---|
| 44 | 29 | __le32 plen; |
|---|
| 45 | | - __u8 data[0]; |
|---|
| 30 | + __u8 data[]; |
|---|
| 46 | 31 | } __packed; |
|---|
| 47 | 32 | |
|---|
| 48 | 33 | static int ag6xx_open(struct hci_uart *hu) |
|---|