video: adf: fix ADF_MAX_ATTACHMENTS declaration
authorGreg Hackmann <ghackmann@google.com>
Mon, 11 Nov 2013 22:31:12 +0000 (14:31 -0800)
committerGreg Hackmann <ghackmann@google.com>
Wed, 20 Nov 2013 22:44:38 +0000 (14:44 -0800)
Userspace-facing ADF_MAX_ATTACHMENTS must be in terms of
userspace-facing struct adf_attachment_config

Change-Id: Iaaddcd6366f13b3e52eb3911efcfff8a61e0b225
Signed-off-by: Greg Hackmann <ghackmann@google.com>
include/uapi/video/adf.h

index 73cb936e0da92abbad4540d9868b56c66a1b247d..38458f6428b5a1662b4767b0975667e7472d2d67 100644 (file)
@@ -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