Skip to content

Commit

Permalink
staging: olpc_dcon: get rid of global i2c_client, create a dcon_priv …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Andres Salomon authored and Greg Kroah-Hartman committed Feb 9, 2011
1 parent fe2d5b4 commit 8d2d3dd
Showing 1 changed file with 99 additions and 64 deletions.
Loading

0 comments on commit 8d2d3dd

Please sign in to comment.