diff options
| author | 2016-10-19 15:58:48 -0700 | |
|---|---|---|
| committer | 2016-10-24 15:21:27 +0200 | |
| commit | 8e8e2e36f77ab074016f79ac63b7255f645da3ed (patch) | |
| tree | 66d97d808ad006ac104d6bc7293858565d961559 /include/linux/dmapool.h | |
| parent | staging: vc04_services: Convert pointers in shared state to offsets (diff) | |
staging: vc04_services: Handle conversion from VCHIQ_SERVICE_HANDLE_T to VCHI_SERVICE_HANDLE_T
A VCHIQ_SERVICE_HANDLE_T which is an int is stuffed into a
VCHI_SERVICE_HANDLE_T which is a pointer, passed around, then
converted back to a VCHIQ_SERVICE_HANDLE_T. Since the data is
always actually a VCHIQ_SERVICE_HANDLE_T(int), never actually a
pointer, it is safe to simply cast the two back in forth.
Note that pointers are never stuffed into an int.
Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dmapool.h')
0 files changed, 0 insertions, 0 deletions
