demo: Move static variables into dev_context
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Tue, 11 Dec 2012 23:26:09 +0000 (17:26 -0600)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 12 Dec 2012 01:19:29 +0000 (19:19 -0600)
commit59d5fae6dab59e3f53283d3abf702f519b8f1200
tree261b17fdcee23b49a1e83137f7f74f3554445827
parentca0a5627c9728ec4a303545bc48baaee22cd82d8
demo: Move static variables into dev_context

Information such as samplerate, time limit or sample limit is context
specific. Store it in dev_context, following the model that most other
drivers use: keep devc in sdi->priv.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
hardware/demo/demo.c