staging: olpc_dcon: get rid of global i2c_client, create a dcon_priv struct
authorAndres Salomon <dilinger@queued.net>
Sun, 6 Feb 2011 23:28:30 +0000 (15:28 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 20:11:54 +0000 (12:11 -0800)
commit8d2d3dd1b4589299ec17b15130fbadfc69996df4
tree421b6ab6ac04b041867fa4c13e9b4fc0f71dabec
parentfe2d5b43807ebb38e0e8c7b269ff08fcd4011726
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>
drivers/staging/olpc_dcon/olpc_dcon.c