diff options
author | 2024-09-05 21:49:07 -0700 | |
---|---|---|
committer | 2024-09-05 21:49:07 -0700 | |
commit | f057b57270c2a17d3f45c177e9434fa5745caa48 (patch) | |
tree | 1c9a2475ea9305f8b128bb8fb74d74660445a6fa /scripts/include/array_size.h | |
parent | Input: synaptics-rmi4 - fix crash when DPM query is not supported (diff) | |
parent | Input: matrix_keypad - remove support for platform data (diff) | |
download | wireguard-linux-f057b57270c2a17d3f45c177e9434fa5745caa48.tar.xz wireguard-linux-f057b57270c2a17d3f45c177e9434fa5745caa48.zip |
Merge branch 'ib/6.11-rc6-matrix-keypad-spitz' into next
Bring in changes removing support for platform data from matrix-keypad
driver.
Diffstat (limited to 'scripts/include/array_size.h')
-rw-r--r-- | scripts/include/array_size.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/include/array_size.h b/scripts/include/array_size.h new file mode 100644 index 000000000000..26ba78d867d1 --- /dev/null +++ b/scripts/include/array_size.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef ARRAY_SIZE_H +#define ARRAY_SIZE_H + +/** + * ARRAY_SIZE - get the number of elements in array @arr + * @arr: array to be sized + */ +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) + +#endif /* ARRAY_SIZE_H */ |