]> err.no Git - linux-2.6/blobdiff - drivers/media/video/msp3400-driver.c
V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module.
[linux-2.6] / drivers / media / video / msp3400-driver.c
index 9b05a0ab776dbe591f4a1613da1a2ff8b42ff2f0..69ed369c2f4801227f57c529123d5235bfd039ef 100644 (file)
@@ -66,12 +66,12 @@ MODULE_LICENSE("GPL");
 
 /* module parameters */
 static int opmode   = OPMODE_AUTO;
-int msp_debug    = 0;    /* msp_debug output */
-int msp_once     = 0;    /* no continous stereo monitoring */
-int msp_amsound  = 0;    /* hard-wire AM sound at 6.5 Hz (france),
-                              the autoscan seems work well only with FM... */
+int msp_debug;          /* msp_debug output */
+int msp_once;           /* no continous stereo monitoring */
+int msp_amsound;        /* hard-wire AM sound at 6.5 Hz (france),
+                           the autoscan seems work well only with FM... */
 int msp_standard = 1;    /* Override auto detect of audio msp_standard, if needed. */
-int msp_dolby    = 0;
+int msp_dolby;
 
 int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual
                                        (msp34xxg only) 0x00a0-0x03c0 */
@@ -1031,8 +1031,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
        }
 
        default:
-               /* nothing */
-               break;
+               /* unknown */
+               return -EINVAL;
        }
        return 0;
 }