Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: android: use BIT macro

Use BIT macro instead of left shifting in android/ion/ion.h

Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mateusz Nowotyński and committed by
Greg Kroah-Hartman
2fcd74b7 feb9828b

+2 -2
+2 -2
drivers/staging/android/ion/ion.h
··· 135 135 /** 136 136 * heap flags - flags between the heaps and core ion code 137 137 */ 138 - #define ION_HEAP_FLAG_DEFER_FREE (1 << 0) 138 + #define ION_HEAP_FLAG_DEFER_FREE BIT(0) 139 139 140 140 /** 141 141 * private flags - flags internal to ion ··· 146 146 * any buffer storage that came from the system allocator will be 147 147 * returned to the system allocator. 148 148 */ 149 - #define ION_PRIV_FLAG_SHRINKER_FREE (1 << 0) 149 + #define ION_PRIV_FLAG_SHRINKER_FREE BIT(0) 150 150 151 151 /** 152 152 * struct ion_heap - represents a heap in the system