diff options
author | Jonathan Corbet <corbet@lwn.net> | 2009-12-28 10:04:02 -0700 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-05-07 17:17:37 -0600 |
commit | b052d7f81fdd352a5d89ef1ac37a2c77f219463b (patch) | |
tree | e4890ea37bfaa972ab2b481400e8183b74b6c604 /drivers/video/via/via_i2c.h | |
parent | 7582eb9be85f35271fd2569681a88a5b243e9380 (diff) | |
download | lwn-b052d7f81fdd352a5d89ef1ac37a2c77f219463b.tar.gz lwn-b052d7f81fdd352a5d89ef1ac37a2c77f219463b.zip |
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 @@ struct via_i2c_stuff { u16 i2c_port; /* GPIO or I2C port */ + u16 is_active; /* Being used as I2C? */ struct i2c_adapter adapter; struct i2c_algo_bit_data algo; }; |