diff options
author | Hans Verkuil <devnull@localhost> | 2006-01-15 17:09:23 +0000 |
---|---|---|
committer | Hans Verkuil <devnull@localhost> | 2006-01-15 17:09:23 +0000 |
commit | c7c5c22f512e0129d00744e809e4830425502dc5 (patch) | |
tree | 9d7e843eeab8a43532999f8aacfc087985bdda3d | |
parent | ee85df059556084843983da015dd2f36f36300f7 (diff) | |
download | mediapointer-dvb-s2-c7c5c22f512e0129d00744e809e4830425502dc5.tar.gz mediapointer-dvb-s2-c7c5c22f512e0129d00744e809e4830425502dc5.tar.bz2 |
Return -EINVAL for unknown commands in msp3400 module.
- Return -EINVAL for unknown commands. Requested by Mike Isely.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 4 | ||||
-rw-r--r-- | v4l/ChangeLog | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 0c64f9469..d50f8cac1 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -1083,8 +1083,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg) } default: - /* nothing */ - break; + /* unknown */ + return -EINVAL; } return 0; } diff --git a/v4l/ChangeLog b/v4l/ChangeLog index 5f90ec8d0..ca29e6990 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,10 @@ +2006-01-15 17:07 hverkuil + + * linux/drivers/media/video/msp3400-driver.c: + - Return -EINVAL for unknown commands. Requested by Mike Isely. + + Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> + 2006-01-15 16:47 hverkuil * linux/drivers/media/video/msp3400.h: |