aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-07 01:06:09 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:32 -0400
commit59af33679592dd6e7bc7aa955098389724684a74 (patch)
tree312143dad3860f45b489fdb4e0f370edcef824c3 /drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentc457377a3a18117aa99653f3715d81960a1c6bda (diff)
V4L/DVB (11154): pvrusb2: Split i2c module handling from i2c adapter
This is the first step in the effort to move the pvrusb2 driver over to using the v4l2-subdev framework. This commit involves mainly splitting apart pvrusb2-i2c-core - part of it is the driver's I2C adapter driver and the rest is the old i2c module handling logic. The i2c module handling junk is moved out to pvrusb2-i2c-track and various header references are correspondingly updated. Yes, this patch has a huge pile of checkpatch complaints, but I'm NOT going to fix any of it. Why? First, I'm moving a large chunk of existing code and I'm not going to spend time adjusting it to match someone's idea of coding style. Second, in the end I expect all that moved code to go away by the time the rework is done so wasting time on it now to adhere to the standard is in the end a large waste of time. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index ed8a4561e086..9441bcc37bc3 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -29,6 +29,7 @@
29#include "pvrusb2-util.h" 29#include "pvrusb2-util.h"
30#include "pvrusb2-hdw.h" 30#include "pvrusb2-hdw.h"
31#include "pvrusb2-i2c-core.h" 31#include "pvrusb2-i2c-core.h"
32#include "pvrusb2-i2c-track.h"
32#include "pvrusb2-tuner.h" 33#include "pvrusb2-tuner.h"
33#include "pvrusb2-eeprom.h" 34#include "pvrusb2-eeprom.h"
34#include "pvrusb2-hdw-internal.h" 35#include "pvrusb2-hdw-internal.h"
@@ -1990,6 +1991,7 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw)
1990 } 1991 }
1991 1992
1992 // This step MUST happen after the earlier powerup step. 1993 // This step MUST happen after the earlier powerup step.
1994 pvr2_i2c_track_init(hdw);
1993 pvr2_i2c_core_init(hdw); 1995 pvr2_i2c_core_init(hdw);
1994 if (!pvr2_hdw_dev_ok(hdw)) return; 1996 if (!pvr2_hdw_dev_ok(hdw)) return;
1995 1997
@@ -2501,6 +2503,7 @@ void pvr2_hdw_destroy(struct pvr2_hdw *hdw)
2501 hdw->decoder_ctrl->detach(hdw->decoder_ctrl->ctxt); 2503 hdw->decoder_ctrl->detach(hdw->decoder_ctrl->ctxt);
2502 } 2504 }
2503 pvr2_i2c_core_done(hdw); 2505 pvr2_i2c_core_done(hdw);
2506 pvr2_i2c_track_done(hdw);
2504 pvr2_hdw_remove_usb_stuff(hdw); 2507 pvr2_hdw_remove_usb_stuff(hdw);
2505 mutex_lock(&pvr2_unit_mtx); do { 2508 mutex_lock(&pvr2_unit_mtx); do {
2506 if ((hdw->unit_number >= 0) && 2509 if ((hdw->unit_number >= 0) &&