diff options
| author | Lukasz Majewski <[email protected]> | 2018-11-23 17:36:19 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2018-12-14 17:59:08 +0100 |
| commit | 916fa097997a5e1b70768ce944de28e038d4bebf (patch) | |
| tree | b12672e9413e8a44117984d84416ba4c400356f3 /include/linux/types.h | |
| parent | bb00a015d624f683c66c9e30341f93b678d03d2e (diff) | |
usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
The BITMAP related operations can now be moved to ./include/linux/bitmap.h
file to mimic the Linux kernel directory tree.
This change also allows to remove the lin_gadget_compat.h header file
(which is a legacy code only for composite U-boot layer).
It was also possible to remove #includes from several USB gadget drivers.
Signed-off-by: Lukasz Majewski <[email protected]>
Reviewed-by: Stefan Agner <[email protected]>
Diffstat (limited to 'include/linux/types.h')
| -rw-r--r-- | include/linux/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 1f3cd63b8f2..cc6f7cb39ee 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -158,4 +158,7 @@ struct ustat { char f_fpack[6]; }; +#define DECLARE_BITMAP(name, bits) \ + unsigned long name[BITS_TO_LONGS(bits)] + #endif /* _LINUX_TYPES_H */ |
