commit | b052d7f81fdd352a5d89ef1ac37a2c77f219463b | [log] [tgz] |
---|---|---|
author | Jonathan Corbet <[email protected]> | Mon Dec 28 10:04:02 2009 -0700 |
committer | Jonathan Corbet <[email protected]> | Fri May 07 17:17:37 2010 -0600 |
tree | e4890ea37bfaa972ab2b481400e8183b74b6c604 | |
parent | 7582eb9be85f35271fd2569681a88a5b243e9380 [diff] [blame] |
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: [email protected] Cc: [email protected] Cc: Harald Welte <[email protected]> Acked-by: Florian Tobias Schandinat <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
diff --git a/drivers/video/via/via_i2c.h b/drivers/video/via/via_i2c.h index b2332cc..1d18e7d 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; };