diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-12 05:05:02 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-12 05:05:02 +0000 |
commit | 5ac5a13ff2fd49780ebe8662765833c58a4bf669 (patch) | |
tree | ea07ebd9a47f3e12eeb4de1b0a51224b3c5c0d5c /linux/drivers/media/video/em28xx/em28xx-cards.c | |
parent | 9293ae2ae1a0de7312fc28fb3b77727d50248592 (diff) | |
download | mediapointer-dvb-s2-5ac5a13ff2fd49780ebe8662765833c58a4bf669.tar.gz mediapointer-dvb-s2-5ac5a13ff2fd49780ebe8662765833c58a4bf669.tar.bz2 |
Remember chip id of devices at initialization
From: Devin Heitmueller <devin.heitmueller@gmail.com>
Remember chip id of devices at initialization
When setting up the device, remember the chip id, so we can control behavior
in the future without having to read the register continuously.
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-cards.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c index 072561e47..adc323bef 100644 --- a/linux/drivers/media/video/em28xx/em28xx-cards.c +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c @@ -1324,6 +1324,7 @@ void em28xx_pre_card_setup(struct em28xx *dev) dev->wait_after_write = 5; rc = em28xx_read_reg(dev, EM28XX_R0A_CHIPID); if (rc > 0) { + dev->chip_id = rc; switch (rc) { case CHIP_ID_EM2860: em28xx_info("chip ID is em2860\n"); |