summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2011-07-10 01:14:07 (GMT)
committerPaul Walmsley <paul@pwsan.com>2011-07-10 01:14:07 (GMT)
commitbc6149587b309e3231e5ac7138b84197813e17ec (patch)
tree0b2b29bce338be46b985ce6d3aaa2bd2671fbaa9 /security
parent0d619a89998d308c48d06b033eccb7374c456f12 (diff)
downloadlinux-fsl-qoriq-bc6149587b309e3231e5ac7138b84197813e17ec.tar.xz
omap_hwmod: use a terminator record with omap_hwmod_dma_info arrays
Previously, struct omap_hwmod_dma_info arrays were unterminated; and users of these arrays used the ARRAY_SIZE() macro to determine the length of the array. However, ARRAY_SIZE() only works when the array is in the same scope as the macro user. So far this hasn't been a problem. However, to reduce duplicated data, a subsequent patch will move common data to a separate, shared file. When this is done, ARRAY_SIZE() will no longer be usable. This patch removes ARRAY_SIZE() usage for struct omap_hwmod_dma_info arrays and uses a sentinel value (irq == -1) as the array terminator instead. Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions