aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2015-08-02 17:19:31 +0200
committerMark Brown <[email protected]>2015-08-05 13:16:17 +0100
commit31581f3c09e796d5faac183eadfe06dca2223a5e (patch)
tree330ffa3f08f45f2e1cbe4a51dcb5d63f1d2bd697 /drivers/fpga/fpga-mgr.c
parent69dae09f2da83c96de6c8573061bd38e9989e873 (diff)
ASoC: adau1373: Replace TLV_DB_RANGE_HEAD with DECLARE_TLV_DB_RANGE
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions