ion: Fix typecasting of msm_ion_heap_types

msm_ion_heap_types type variable is assigned to a ion_heap_type
variable, typecast this properly to ion_heap_type before assigning
also fix is_cp_flag_present function by using bitwise operators
instead of logical operators and consider ION_FLAG_SECURE as well
while allocating through system secure heap.

Change-Id: I7f65c5d5d92e3007a1f803e7438ccbfb672907e6
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
5 files changed