diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-03-23 21:58:58 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-03-25 18:09:45 +0300 |
commit | 0a460d8fe2db6887169a19b048ea0c90f8bdc3b7 (patch) | |
tree | a1f41c11685c3854cc5de6f1a99a828510326181 /drivers/bluetooth/btintel.h | |
parent | 9b16bfbf411664697817385096ce59df453e1fb6 (diff) | |
download | linux-0a460d8fe2db6887169a19b048ea0c90f8bdc3b7.tar.xz |
Bluetooth: btintel: Consolidate intel_version_tlv parsing
This moves version checks of intel_version_tlv() to btintel_version_info_tlv().
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btintel.h')
-rw-r--r-- | drivers/bluetooth/btintel.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h index 51f1f2c883b4..56f30eaa1e3c 100644 --- a/drivers/bluetooth/btintel.h +++ b/drivers/bluetooth/btintel.h @@ -149,7 +149,7 @@ int btintel_set_diag_mfg(struct hci_dev *hdev, bool enable); void btintel_hw_error(struct hci_dev *hdev, u8 code); void btintel_version_info(struct hci_dev *hdev, struct intel_version *ver); -void btintel_version_info_tlv(struct hci_dev *hdev, struct intel_version_tlv *version); +int btintel_version_info_tlv(struct hci_dev *hdev, struct intel_version_tlv *version); int btintel_secure_send(struct hci_dev *hdev, u8 fragment_type, u32 plen, const void *param); int btintel_load_ddc_config(struct hci_dev *hdev, const char *ddc_name); @@ -216,9 +216,10 @@ static inline void btintel_version_info(struct hci_dev *hdev, { } -static inline void btintel_version_info_tlv(struct hci_dev *hdev, - struct intel_version_tlv *version) +static inline int btintel_version_info_tlv(struct hci_dev *hdev, + struct intel_version_tlv *version) { + return -EOPNOTSUPP; } static inline int btintel_secure_send(struct hci_dev *hdev, u8 fragment_type, |