cbus: retu: pass the child device pointer to all retu functions
authorFelipe Balbi <balbi@ti.com>
Mon, 14 Feb 2011 18:05:26 +0000 (20:05 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Feb 2011 19:38:27 +0000 (21:38 +0200)
commit1c1e8732bf2884b90b438f34881271a9af47a3af
treee712f96fe546a8e036892889aa915e99ae998014
parent1e751fee95a43316ec819ecabc88a3ff6c1d4db4
cbus: retu: pass the child device pointer to all retu functions

Throught the child device pointer, we can fetch
our needed struct retu simply by dev_get_drvdata(child->parent)

By using that trick, we can get really close to getting
rid of the global struct retu pointer.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/cbus/retu-headset.c
drivers/cbus/retu-pwrbutton.c
drivers/cbus/retu-rtc.c
drivers/cbus/retu-wdt.c
drivers/cbus/retu.c
drivers/cbus/retu.h