diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-08-04 16:23:41 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-08-11 11:55:48 -0700 |
commit | a1f6c3aef13c9e7f8d459bd464e9e34da1342c0c (patch) | |
tree | a3e838daff663672468afd88b1aae9991be869fb /include/net | |
parent | a091289218202bc09d9b9caa8afcde1018584aec (diff) | |
download | linux-a1f6c3aef13c9e7f8d459bd464e9e34da1342c0c.tar.gz linux-a1f6c3aef13c9e7f8d459bd464e9e34da1342c0c.tar.bz2 linux-a1f6c3aef13c9e7f8d459bd464e9e34da1342c0c.zip |
Bluetooth: hci_sync: Introduce PTR_UINT/UINT_PTR macros
This introduces PTR_UINT/UINT_PTR macros and replace the use of
PTR_ERR/ERR_PTR.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_sync.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_sync.h b/include/net/bluetooth/hci_sync.h index b516a0f4a55b..57eeb07aeb25 100644 --- a/include/net/bluetooth/hci_sync.h +++ b/include/net/bluetooth/hci_sync.h @@ -5,6 +5,9 @@ * Copyright (C) 2021 Intel Corporation */ +#define UINT_PTR(_handle) ((void *)((uintptr_t)_handle)) +#define PTR_UINT(_ptr) ((uintptr_t)((void *)_ptr)) + typedef int (*hci_cmd_sync_work_func_t)(struct hci_dev *hdev, void *data); typedef void (*hci_cmd_sync_work_destroy_t)(struct hci_dev *hdev, void *data, int err); |