Message ID | 20170621080812.6817-2-jthumshirn@suse.de (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 4890787731b8..25e2ae4432bd 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -30,7 +30,9 @@ #include <linux/types.h> #include <linux/version.h> -#define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0) +#define MEDIA_REVISION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) + +#define MEDIA_API_VERSION MEDIA_REVISION(0, 1, 0) struct media_device_info { char driver[16];
Currently the media code abuses the KERNEL_VERSION macro to encode a version triplet. Introduce a MEDIA_REVISION macro to get rid of the confusing and creative KERNEL_VERSION usage in the media subsystem. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> --- include/uapi/linux/media.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)