staging: olpc_dcon: move more variables into dcon_priv
authorAndres Salomon <dilinger@queued.net>
Fri, 11 Feb 2011 01:54:24 +0000 (17:54 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:33:21 +0000 (12:33 -0800)
commitbbe963f1b98c90980e33086d726f0963e286d1b4
tree19b7a735621df7cdf9714beca67b3f7c97333088
parent097cd83a4c312e1ae0d9c14526f846666cab4f3a
staging: olpc_dcon: move more variables into dcon_priv

This moves dcon_source and dcon_pending into the dcon_priv struct.

Because these variables are used by the IRQ handler (which is
registered in the model-specific callbacks), we end up needing
to move dcon_priv into olpc_dcon.h.  This also changes the IRQ
registration to use the dcon_priv pointer as dev_id, instead of
dcon_driver.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/olpc_dcon/olpc_dcon.c
drivers/staging/olpc_dcon/olpc_dcon.h
drivers/staging/olpc_dcon/olpc_dcon_xo_1.c
drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c