V4L/DVB (9179): S2API: frontend.h cleanup
authorBrandon Philips <bphilips@suse.de>
Tue, 7 Oct 2008 00:31:48 +0000 (21:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Oct 2008 14:27:50 +0000 (12:27 -0200)
Reviewing the code briefly and saw this.
You can't change more than DTV_IOCTL_MAX_MSGS at once, not 16.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/linux/dvb/frontend.h

index 291dd8e5e58df0aa9019b44454b6d0e1facbf27f..3d4fab495fb29faa44857f94d5626175d9f0b919 100644 (file)
@@ -328,14 +328,14 @@ struct dtv_property {
        int result;
 } __attribute__ ((packed));
 
-/* No more than 16 properties during any given ioctl */
+/* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */
+#define DTV_IOCTL_MAX_MSGS 64
+
 struct dtv_properties {
        __u32 num;
        struct dtv_property *props;
 };
 
-#define DTV_IOCTL_MAX_MSGS 64
-
 #define FE_SET_PROPERTY                   _IOW('o', 82, struct dtv_properties)
 #define FE_GET_PROPERTY                   _IOR('o', 83, struct dtv_properties)