diff options
author | Jonathan Corbet <corbet@lwn.net> | 2009-12-28 12:04:02 -0500 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-05-07 19:17:37 -0400 |
commit | b052d7f81fdd352a5d89ef1ac37a2c77f219463b (patch) | |
tree | e4890ea37bfaa972ab2b481400e8183b74b6c604 /drivers/video/via/via_i2c.h | |
parent | 7582eb9be85f35271fd2569681a88a5b243e9380 (diff) |
via: Do not attempt I/O on inactive I2C adapters
If an adapter has been configured for GPIO (or off), we should not try to
use it as an I2C port.
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Cc: Harald Welte <laforge@gnumonks.org>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/video/via/via_i2c.h')
-rw-r--r-- | drivers/video/via/via_i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/via/via_i2c.h b/drivers/video/via/via_i2c.h index b2332cce9d18..1d18e7d57b7f 100644 --- a/drivers/video/via/via_i2c.h +++ b/drivers/video/via/via_i2c.h | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | struct via_i2c_stuff { | 27 | struct via_i2c_stuff { |
28 | u16 i2c_port; /* GPIO or I2C port */ | 28 | u16 i2c_port; /* GPIO or I2C port */ |
29 | u16 is_active; /* Being used as I2C? */ | ||
29 | struct i2c_adapter adapter; | 30 | struct i2c_adapter adapter; |
30 | struct i2c_algo_bit_data algo; | 31 | struct i2c_algo_bit_data algo; |
31 | }; | 32 | }; |