commit | 8d2d3dd1b4589299ec17b15130fbadfc69996df4 | [log] [tgz] |
---|---|---|
author | Andres Salomon <dilinger@queued.net> | Sun Feb 06 15:28:30 2011 -0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Feb 09 12:11:54 2011 -0800 |
tree | 421b6ab6ac04b041867fa4c13e9b4fc0f71dabec | |
parent | fe2d5b43807ebb38e0e8c7b269ff08fcd4011726 [diff] |
staging: olpc_dcon: get rid of global i2c_client, create a dcon_priv struct Rather than using the global i2c_client variable, create a dcon_priv struct, store in the drvdata portion of the dev, and pass that around. In order to access dcon struct from various callbacks, include the reboot notifier and source switching work struct in the dcon struct. Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>