aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/msp3400-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/msp3400-driver.c')
-rw-r--r--drivers/media/video/msp3400-driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c
index ba1af3c8525e..3bb7d6634862 100644
--- a/drivers/media/video/msp3400-driver.c
+++ b/drivers/media/video/msp3400-driver.c
@@ -773,6 +773,9 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg)
773 break; 773 break;
774 } 774 }
775 775
776 case VIDIOC_G_CHIP_IDENT:
777 return v4l2_chip_ident_i2c_client(client, arg, state->ident, (state->rev1 << 16) | state->rev2);
778
776 default: 779 default:
777 /* unknown */ 780 /* unknown */
778 return -EINVAL; 781 return -EINVAL;
@@ -872,6 +875,8 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind)
872 snprintf(client->name, sizeof(client->name), "MSP%d4%02d%c-%c%d", 875 snprintf(client->name, sizeof(client->name), "MSP%d4%02d%c-%c%d",
873 msp_family, msp_product, 876 msp_family, msp_product,
874 msp_revision, msp_hard, msp_rom); 877 msp_revision, msp_hard, msp_rom);
878 /* Rev B=2, C=3, D=4, G=7 */
879 state->ident = msp_family * 10000 + 4000 + msp_product * 10 + msp_revision - '@';
875 880
876 /* Has NICAM support: all mspx41x and mspx45x products have NICAM */ 881 /* Has NICAM support: all mspx41x and mspx45x products have NICAM */
877 state->has_nicam = msp_prod_hi == 1 || msp_prod_hi == 5; 882 state->has_nicam = msp_prod_hi == 1 || msp_prod_hi == 5;