Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337543
b: refs/heads/master
c: 9963304
h: refs/heads/master
i:
  337541: e50506d
  337539: 13f3c32
  337535: 858a7d9
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Nov 1, 2012
1 parent 00d98e3 commit 47870d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a29f7a9525f9d8bae1614c0295a008029dfd3079
refs/heads/master: 99633048bf82327e5ef752627e27a0f031701000
11 changes: 4 additions & 7 deletions trunk/drivers/staging/comedi/drivers/skel.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ static DEFINE_PCI_DEVICE_TABLE(skel_pci_table) = {

MODULE_DEVICE_TABLE(pci, skel_pci_table);

/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const struct skel_board *)dev->board_ptr)

/* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure,
feel free to suggest moving the variable to the struct comedi_device struct.
Expand Down Expand Up @@ -205,6 +200,7 @@ static int skel_ns_to_timer(unsigned int *ns, int round);
*/
static int skel_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct skel_board *thisboard;
struct skel_private *devpriv;
struct comedi_subdevice *s;
int ret;
Expand All @@ -218,9 +214,9 @@ static int skel_attach(struct comedi_device *dev, struct comedi_devconfig *it)
*/
/* dev->board_ptr = skel_probe(dev, it); */

thisboard = comedi_board(dev);
/*
* Initialize dev->board_name. Note that we can use the "thisboard"
* macro now, since we just initialized it in the last line.
* Initialize dev->board_name.
*/
dev->board_name = thisboard->name;

Expand Down Expand Up @@ -300,6 +296,7 @@ static void skel_detach(struct comedi_device *dev)
static int skel_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
const struct skel_board *thisboard = comedi_board(dev);
int n, i;
unsigned int d;
unsigned int status;
Expand Down

0 comments on commit 47870d3

Please sign in to comment.