diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 21:47:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:33 -0400 |
commit | a932f507463d996b6ec1647ee7d4e2fa1e6aeda6 (patch) | |
tree | 00681f6ca29c2ddc052bc2f18c0503aba71d3f5f /drivers/media/video/pvrusb2/pvrusb2-hdw.c | |
parent | e9c64a78dbd7c4f6c4a31c4040f340f732bf4ec5 (diff) |
V4L/DVB (11159): pvrusb2: Providing means to stop tracking an old i2c module
This implements a temporary mechanism to "untrack" an i2c module from
the old i2c layer. The v4l2-subdev related code in the driver will
use this to remove a sub-device from the old i2c layer. In the end,
once the old i2c layer is removed, this will also eventually go away.
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index faa94cef2c55..0e0d086bb278 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2020,6 +2020,12 @@ static void pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, | |||
2020 | i2caddr); | 2020 | i2caddr); |
2021 | } | 2021 | } |
2022 | 2022 | ||
2023 | /* If we have both old and new i2c layers enabled, make sure that | ||
2024 | old layer isn't also tracking this module. This is a debugging | ||
2025 | aid, in normal situations there's no reason for both mechanisms | ||
2026 | to be enabled. */ | ||
2027 | pvr2_i2c_untrack_subdev(hdw, sd); | ||
2028 | |||
2023 | // ????? | 2029 | // ????? |
2024 | /* Based on module ID, we should remember subdev pointers | 2030 | /* Based on module ID, we should remember subdev pointers |
2025 | so that we can send certain custom commands where | 2031 | so that we can send certain custom commands where |