summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-10 01:37:42 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-10-10 01:37:42 -0700
commitaa956009652213ab93e09e11d1892afbf2aefd18 (patch)
tree8d6097a297db17f44f0bc9f638f9f66dcb5dea4e /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentfe95ab0b52512f5a554999e0a96614a047b5cf6a (diff)
downloadmediapointer-dvb-s2-aa956009652213ab93e09e11d1892afbf2aefd18.tar.gz
mediapointer-dvb-s2-aa956009652213ab93e09e11d1892afbf2aefd18.tar.bz2
pvrusb2: Change list_for_each+list_entry to list_for_each_entry
From: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Reviewed-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 694a3313b..91f27facb 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -3571,7 +3571,6 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
int setFl,u64 *val_ptr)
{
#ifdef CONFIG_VIDEO_ADV_DEBUG
- struct list_head *item;
struct pvr2_i2c_client *cp;
struct v4l2_register req;
int stat = 0;
@@ -3584,8 +3583,7 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
req.reg = reg_id;
if (setFl) req.val = *val_ptr;
mutex_lock(&hdw->i2c_list_lock); do {
- list_for_each(item,&hdw->i2c_clients) {
- cp = list_entry(item,struct pvr2_i2c_client,list);
+ list_for_each_entry(cp, &hdw->i2c_clients, list) {
if (!v4l2_chip_match_i2c_client(
cp->client,
req.match_type, req.match_chip)) {