Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92376
b: refs/heads/master
c: ab6c46e
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent bab6db8 commit 2dfe58f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdb0aace95d42571ea054a56ed053f868336e13a
refs/heads/master: ab6c46e24a3c89c1e2d0d3959e119583e1bc92d9
10 changes: 6 additions & 4 deletions trunk/drivers/media/video/tuner-i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ static inline int tuner_i2c_xfer_send_recv(struct tuner_i2c_props *props,

#define tuner_printk(kernlvl, i2cprops, fmt, arg...) do { \
printk(kernlvl "%s %d-%04x: " fmt, i2cprops.name, \
i2c_adapter_id(i2cprops.adap), \
i2cprops.adap ? \
i2c_adapter_id(i2cprops.adap) : -1, \
i2cprops.addr, ##arg); \
} while (0)

Expand Down Expand Up @@ -128,9 +129,10 @@ static inline int tuner_i2c_xfer_send_recv(struct tuner_i2c_props *props,
({ \
int __ret = 0; \
list_for_each_entry(state, &list, hybrid_tuner_instance_list) { \
if ((i2c_adapter_id(state->i2c_props.adap) == \
i2c_adapter_id(i2cadap)) && \
(state->i2c_props.addr == i2caddr)) { \
if ((state->i2c_props.addr == i2caddr) && \
((state->i2c_props.adap ? \
i2c_adapter_id(state->i2c_props.adap) : -1) == \
(i2cadap ? i2c_adapter_id(i2cadap) : -1))) { \
__tuner_info(state->i2c_props, \
"attaching existing instance\n"); \
state->i2c_props.count++; \
Expand Down

0 comments on commit 2dfe58f

Please sign in to comment.