Thread (1 message) 1 message, 1 author, 2011-05-25
DORMANTno replies

[PATCH 14/15] OMAP: GPIO: Use memset for omap_gpio_reg_offs

From: Kevin Hilman <hidden>
Date: 2011-05-25 23:30:49
Also in: linux-omap

Tarun Kanti DebBarma [off-list ref] writes:
From: Charulatha V <redacted>

Use memset to fill omap_gpio_reg_offs structure with 0xFFFF
instead of filling each and every undefined register offset
separately with USHRT_MAX in a given OMAP SoC. This would ease
while adding new register offsets in the future SoCs.

Signed-off-by: Charulatha V <redacted>
Signed-off-by: Tarun Kanti DebBarma <redacted>
This can be dropped in favor of using zero to indicate a non-existant
register offset.  Only the revision register needs a special case of
using USHRT_MAX since zero can be a valid offset for the revision
register.

Kevin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help