mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 16:29:25 -04:00
staging: comedi: amplc_pci224: replace comedi_board() calls
The `comedi_board(dev)` inline function calls just return `dev->board_ptr`. Expand the inline function calls. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
280f7a4c4f
commit
6b417436aa
@@ -393,7 +393,7 @@ static void
|
||||
pci224_ao_set_data(struct comedi_device *dev, int chan, int range,
|
||||
unsigned int data)
|
||||
{
|
||||
const struct pci224_board *thisboard = comedi_board(dev);
|
||||
const struct pci224_board *thisboard = dev->board_ptr;
|
||||
struct pci224_private *devpriv = dev->private;
|
||||
unsigned short mangled;
|
||||
|
||||
@@ -645,7 +645,7 @@ static int pci224_ao_check_chanlist(struct comedi_device *dev,
|
||||
struct comedi_subdevice *s,
|
||||
struct comedi_cmd *cmd)
|
||||
{
|
||||
const struct pci224_board *thisboard = comedi_board(dev);
|
||||
const struct pci224_board *thisboard = dev->board_ptr;
|
||||
unsigned int range_check_0;
|
||||
unsigned int chan_mask = 0;
|
||||
int i;
|
||||
@@ -859,7 +859,7 @@ static void pci224_ao_start_pacer(struct comedi_device *dev,
|
||||
|
||||
static int pci224_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
||||
{
|
||||
const struct pci224_board *thisboard = comedi_board(dev);
|
||||
const struct pci224_board *thisboard = dev->board_ptr;
|
||||
struct pci224_private *devpriv = dev->private;
|
||||
struct comedi_cmd *cmd = &s->async->cmd;
|
||||
int range;
|
||||
@@ -951,7 +951,7 @@ static void
|
||||
pci224_ao_munge(struct comedi_device *dev, struct comedi_subdevice *s,
|
||||
void *data, unsigned int num_bytes, unsigned int chan_index)
|
||||
{
|
||||
const struct pci224_board *thisboard = comedi_board(dev);
|
||||
const struct pci224_board *thisboard = dev->board_ptr;
|
||||
struct comedi_cmd *cmd = &s->async->cmd;
|
||||
unsigned short *array = data;
|
||||
unsigned int length = num_bytes / sizeof(*array);
|
||||
|
||||
Reference in New Issue
Block a user