Skip to content

Commit

Permalink
drivers: dac: ad9144: fix ARRAY_SIZE
Browse files Browse the repository at this point in the history
Fix array size macro definition.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
  • Loading branch information
amiclaus authored and dbogdan committed Nov 6, 2019
1 parent 3b16bb5 commit 3f59862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dac/ad9144/ad9144.h
Expand Up @@ -1358,7 +1358,7 @@
/*
* GENERAL
*/
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x))
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#define BIT(x) (1UL << (x))

/******************************************************************************/
Expand Down

0 comments on commit 3f59862

Please sign in to comment.