3 Aug
2015
3 Aug
'15
4:46 p.m.
On August 2, 2015 16:20, Lars-Peter Clausen wrote:
DECLARE_TLV_DB_RANGE() has the advantage over using TLV_DB_RANGE_HEAD() that it automatically calculates the number of items in the TLV and is hence less prone to manual error.
Generate using the following coccinelle script
// <smpl> @@ declarer name DECLARE_TLV_DB_RANGE; identifier tlv; constant x; @@ -unsigned int tlv[] = {
- TLV_DB_RANGE_HEAD(x),
+DECLARE_TLV_DB_RANGE(tlv, ... -}; +); // </smpl>
Signed-off-by: Lars-Peter Clausen lars@metafoo.de
Acked-by: Adam Thomson Adam.Thomson.Opensource@diasemi.com