staging: comedi: gsc_hpdi: remove board(dev) function
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 16:28:30 +0000 (16:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:33:22 +0000 (12:33 -0700)
commit6526cd1ad04adc2ca54d34d1f003b8bb5318d337
tree6337aeeb9d4501a85f17c479f6dff91e5a26f4d1
parent594985d6615cc214dbfaf18fb6325d89a3c82e84
staging: comedi: gsc_hpdi: remove board(dev) function

The `board(dev)` function just casts `dev->board_ptr` to a pointer to
the private data type `struct hpdi_private` and returns it.  It's only
called from one function: `hpdi_auto_attach()`.

Remove `board()` and use a local variable to point to the `struct
hpdi_private` data structure.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/gsc_hpdi.c