From: Greg Hackmann Date: Mon, 11 Nov 2013 22:31:12 +0000 (-0800) Subject: video: adf: fix ADF_MAX_ATTACHMENTS declaration X-Git-Tag: firefly_0821_release~2958^2~225 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9c220a4861f91b7051f6d29db58c9aca8b06cbb;p=firefly-linux-kernel-4.4.55.git video: adf: fix ADF_MAX_ATTACHMENTS declaration Userspace-facing ADF_MAX_ATTACHMENTS must be in terms of userspace-facing struct adf_attachment_config Change-Id: Iaaddcd6366f13b3e52eb3911efcfff8a61e0b225 Signed-off-by: Greg Hackmann --- diff --git a/include/uapi/video/adf.h b/include/uapi/video/adf.h index 73cb936e0da9..38458f6428b5 100644 --- a/include/uapi/video/adf.h +++ b/include/uapi/video/adf.h @@ -233,7 +233,7 @@ struct adf_device_data { size_t custom_data_size; void __user *custom_data; }; -#define ADF_MAX_ATTACHMENTS (4096 / sizeof(struct adf_attachment)) +#define ADF_MAX_ATTACHMENTS (4096 / sizeof(struct adf_attachment_config)) /** * struct adf_device_data - describes a display interface