This means that when developers add new commands then they'll be see
the DTV_MAX_COMMAND define and will be more likely to modify it, without
having to modify the command validation code.
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
 {
        int i;
 
-       if( (tvp->cmd <= 0 || tvp->cmd > DTV_DELIVERY_SYSTEM) &&
-                       tvp->cmd != DTV_API_VERSION) {
+       if (tvp->cmd <= 0 || tvp->cmd > DTV_MAX_COMMAND) {
                printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n",
                        __func__, tvp->cmd);
                return;
 
 
 #define DTV_API_VERSION                                35
 
+#define DTV_MAX_COMMAND                                DTV_API_VERSION
+
 typedef enum fe_pilot {
        PILOT_ON,
        PILOT_OFF,