Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363508
b: refs/heads/master
c: a7401cd
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 7b7229e commit bb5da95
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 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: 8bdfefb7849c563e05aa60a4649cf4d0987b97b4
refs/heads/master: a7401cddcdf739d3cb9598c9b3787a732fc87809
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ struct comedi_device {

const char *board_name;
const void *board_ptr;
int attached;
bool attached:1;
spinlock_t spinlock;
struct mutex mutex;
int in_request_module;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void cleanup_device(struct comedi_device *dev)

static void __comedi_device_detach(struct comedi_device *dev)
{
dev->attached = 0;
dev->attached = false;
if (dev->driver)
dev->driver->detach(dev);
else
Expand Down Expand Up @@ -290,7 +290,7 @@ static int comedi_device_postconfig(struct comedi_device *dev)
dev->board_name = "BUG";
}
smp_wmb();
dev->attached = 1;
dev->attached = true;
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/cb_pcidas.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ static irqreturn_t cb_pcidas_interrupt(int irq, void *d)
static const int timeout = 10000;
unsigned long flags;

if (dev->attached == 0)
if (!dev->attached)
return IRQ_NONE;

async = s->async;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/cb_pcidas64.c
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ static irqreturn_t handle_interrupt(int irq, void *d)
/* an interrupt before all the postconfig stuff gets done could
* cause a NULL dereference if we continue through the
* interrupt handler */
if (dev->attached == 0) {
if (!dev->attached) {
DEBUG_PRINT("premature interrupt, ignoring\n");
return IRQ_HANDLED;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/das16.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ static void das16_interrupt(struct comedi_device *dev)
int num_bytes, residue;
int buffer_index;

if (dev->attached == 0) {
if (!dev->attached) {
comedi_error(dev, "premature interrupt");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/das16m1.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ static irqreturn_t das16m1_interrupt(int irq, void *d)
int status;
struct comedi_device *dev = d;

if (dev->attached == 0) {
if (!dev->attached) {
comedi_error(dev, "premature interrupt");
return IRQ_HANDLED;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/das1800.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static irqreturn_t das1800_interrupt(int irq, void *d)
struct comedi_device *dev = d;
unsigned int status;

if (dev->attached == 0) {
if (!dev->attached) {
comedi_error(dev, "premature interrupt");
return IRQ_HANDLED;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_660x.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ static irqreturn_t ni_660x_interrupt(int irq, void *d)
unsigned i;
unsigned long flags;

if (dev->attached == 0)
if (!dev->attached)
return IRQ_NONE;
/* lock to avoid race with comedi_poll */
spin_lock_irqsave(&devpriv->interrupt_lock, flags);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_at_a2150.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static irqreturn_t a2150_interrupt(int irq, void *d)
short dpnt;
static const int sample_size = sizeof(devpriv->dma_buffer[0]);

if (dev->attached == 0) {
if (!dev->attached) {
comedi_error(dev, "premature interrupt");
return IRQ_HANDLED;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_labpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ static irqreturn_t labpc_interrupt(int irq, void *d)
struct comedi_async *async;
struct comedi_cmd *cmd;

if (dev->attached == 0) {
if (!dev->attached) {
comedi_error(dev, "premature interrupt");
return IRQ_HANDLED;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_mio_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ static irqreturn_t ni_E_interrupt(int irq, void *d)
struct mite_struct *mite = devpriv->mite;
#endif

if (dev->attached == 0)
if (!dev->attached)
return IRQ_NONE;
smp_mb(); /* make sure dev->attached is checked before handler does anything else. */

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_pcidio.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ static irqreturn_t nidio_interrupt(int irq, void *d)
unsigned int m_status = 0;

/* interrupcions parasites */
if (dev->attached == 0) {
if (!dev->attached) {
/* assume it's from another card */
return IRQ_NONE;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/s626.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ static irqreturn_t s626_irq_handler(int irq, void *d)
uint8_t group;
uint16_t irqbit;

if (dev->attached == 0)
if (!dev->attached)
return IRQ_NONE;
/* lock to avoid race with comedi_poll */
spin_lock_irqsave(&dev->spinlock, flags);
Expand Down

0 comments on commit bb5da95

Please sign in to comment.