Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141251
b: refs/heads/master
c: 451084d
h: refs/heads/master
i:
  141249: d508751
  141247: 6c2c40c
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 73bff28 commit 3931229
Show file tree
Hide file tree
Showing 46 changed files with 475 additions and 502 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: 483f29cc43bf336e7c4cb8cb7aaccc1f55a99e4e
refs/heads/master: 451084d2e056ab9ef0ae6afe59556dadc2f416aa
4 changes: 1 addition & 3 deletions trunk/drivers/staging/meilhaus/me0600_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ me_device_t *me0600_pci_constructor(struct pci_dev *pci_device)

return (me_device_t *) me0600_device;
}
EXPORT_SYMBOL(me0600_pci_constructor);

// Init and exit of module.

Expand All @@ -210,6 +211,3 @@ MODULE_AUTHOR
MODULE_DESCRIPTION("Device Driver Module for ME-6xx Device");
MODULE_SUPPORTED_DEVICE("Meilhaus ME-6xx Devices");
MODULE_LICENSE("GPL");

// Export the constructor.
EXPORT_SYMBOL(me0600_pci_constructor);
18 changes: 9 additions & 9 deletions trunk/drivers/staging/meilhaus/me0600_dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>

#include "medefines.h"
Expand Down Expand Up @@ -91,7 +91,7 @@ static int me0600_dio_io_reset_subdevice(struct me_subdevice *subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_dio_io_single_config(me_subdevice_t * subdevice,
static int me0600_dio_io_single_config(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int single_config,
Expand Down Expand Up @@ -162,7 +162,7 @@ static int me0600_dio_io_single_config(me_subdevice_t * subdevice,
return err;
}

static int me0600_dio_io_single_read(me_subdevice_t * subdevice,
static int me0600_dio_io_single_read(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int *value, int time_out, int flags)
Expand Down Expand Up @@ -242,7 +242,7 @@ static int me0600_dio_io_single_read(me_subdevice_t * subdevice,
return err;
}

static int me0600_dio_io_single_write(me_subdevice_t * subdevice,
static int me0600_dio_io_single_write(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int value, int time_out, int flags)
Expand Down Expand Up @@ -329,15 +329,15 @@ static int me0600_dio_io_single_write(me_subdevice_t * subdevice,
return err;
}

static int me0600_dio_query_number_channels(me_subdevice_t * subdevice,
static int me0600_dio_query_number_channels(me_subdevice_t *subdevice,
int *number)
{
PDEBUG("executed.\n");
*number = 8;
return ME_ERRNO_SUCCESS;
}

static int me0600_dio_query_subdevice_type(me_subdevice_t * subdevice,
static int me0600_dio_query_subdevice_type(me_subdevice_t *subdevice,
int *type, int *subtype)
{
PDEBUG("executed.\n");
Expand All @@ -346,7 +346,7 @@ static int me0600_dio_query_subdevice_type(me_subdevice_t * subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_dio_query_subdevice_caps(me_subdevice_t * subdevice,
static int me0600_dio_query_subdevice_caps(me_subdevice_t *subdevice,
int *caps)
{
PDEBUG("executed.\n");
Expand All @@ -356,7 +356,7 @@ static int me0600_dio_query_subdevice_caps(me_subdevice_t * subdevice,

me0600_dio_subdevice_t *me0600_dio_constructor(uint32_t reg_base,
unsigned int dio_idx,
spinlock_t * ctrl_reg_lock)
spinlock_t *ctrl_reg_lock)
{
me0600_dio_subdevice_t *subdevice;
int err;
Expand All @@ -381,7 +381,7 @@ me0600_dio_subdevice_t *me0600_dio_constructor(uint32_t reg_base,
kfree(subdevice);
return NULL;
}
// Initialize spin locks.
/* Initialize spin locks. */
spin_lock_init(&subdevice->subdevice_lock);

subdevice->ctrl_reg_lock = ctrl_reg_lock;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/meilhaus/me0600_ext_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>
#include <linux/interrupt.h>

Expand Down Expand Up @@ -393,7 +393,7 @@ static irqreturn_t me0600_isr(int irq, void *dev_id)

me0600_ext_irq_subdevice_t *me0600_ext_irq_constructor(uint32_t plx_reg_base,
uint32_t me0600_reg_base,
spinlock_t * intcsr_lock,
spinlock_t *intcsr_lock,
unsigned ext_irq_idx,
int irq)
{
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/staging/meilhaus/me0600_optoi.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>

#include "medefines.h"
Expand Down Expand Up @@ -68,7 +68,7 @@ static int me0600_optoi_io_reset_subdevice(struct me_subdevice *subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_optoi_io_single_config(me_subdevice_t * subdevice,
static int me0600_optoi_io_single_config(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int single_config,
Expand Down Expand Up @@ -118,7 +118,7 @@ static int me0600_optoi_io_single_config(me_subdevice_t * subdevice,
return err;
}

static int me0600_optoi_io_single_read(me_subdevice_t * subdevice,
static int me0600_optoi_io_single_read(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int *value, int time_out, int flags)
Expand Down Expand Up @@ -169,15 +169,15 @@ static int me0600_optoi_io_single_read(me_subdevice_t * subdevice,
return err;
}

static int me0600_optoi_query_number_channels(me_subdevice_t * subdevice,
static int me0600_optoi_query_number_channels(me_subdevice_t *subdevice,
int *number)
{
PDEBUG("executed.\n");
*number = 8;
return ME_ERRNO_SUCCESS;
}

static int me0600_optoi_query_subdevice_type(me_subdevice_t * subdevice,
static int me0600_optoi_query_subdevice_type(me_subdevice_t *subdevice,
int *type, int *subtype)
{
PDEBUG("executed.\n");
Expand All @@ -186,7 +186,7 @@ static int me0600_optoi_query_subdevice_type(me_subdevice_t * subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_optoi_query_subdevice_caps(me_subdevice_t * subdevice,
static int me0600_optoi_query_subdevice_caps(me_subdevice_t *subdevice,
int *caps)
{
PDEBUG("executed.\n");
Expand Down Expand Up @@ -219,7 +219,7 @@ me0600_optoi_subdevice_t *me0600_optoi_constructor(uint32_t reg_base)
kfree(subdevice);
return NULL;
}
// Initialize spin locks.
/* Initialize spin locks. */
spin_lock_init(&subdevice->subdevice_lock);

/* Save the subdevice index */
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/staging/meilhaus/me0600_relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>

#include "medefines.h"
Expand Down Expand Up @@ -85,7 +85,7 @@ static int me0600_relay_io_reset_subdevice(struct me_subdevice *subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_relay_io_single_config(me_subdevice_t * subdevice,
static int me0600_relay_io_single_config(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int single_config,
Expand Down Expand Up @@ -135,7 +135,7 @@ static int me0600_relay_io_single_config(me_subdevice_t * subdevice,
return err;
}

static int me0600_relay_io_single_read(me_subdevice_t * subdevice,
static int me0600_relay_io_single_read(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int *value, int time_out, int flags)
Expand Down Expand Up @@ -203,7 +203,7 @@ static int me0600_relay_io_single_read(me_subdevice_t * subdevice,
return err;
}

static int me0600_relay_io_single_write(me_subdevice_t * subdevice,
static int me0600_relay_io_single_write(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int value, int time_out, int flags)
Expand Down Expand Up @@ -279,15 +279,15 @@ static int me0600_relay_io_single_write(me_subdevice_t * subdevice,
return err;
}

static int me0600_relay_query_number_channels(me_subdevice_t * subdevice,
static int me0600_relay_query_number_channels(me_subdevice_t *subdevice,
int *number)
{
PDEBUG("executed.\n");
*number = 16;
return ME_ERRNO_SUCCESS;
}

static int me0600_relay_query_subdevice_type(me_subdevice_t * subdevice,
static int me0600_relay_query_subdevice_type(me_subdevice_t *subdevice,
int *type, int *subtype)
{
PDEBUG("executed.\n");
Expand All @@ -296,7 +296,7 @@ static int me0600_relay_query_subdevice_type(me_subdevice_t * subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_relay_query_subdevice_caps(me_subdevice_t * subdevice,
static int me0600_relay_query_subdevice_caps(me_subdevice_t *subdevice,
int *caps)
{
PDEBUG("executed.\n");
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/meilhaus/me0600_ttli.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>

#include "medefines.h"
Expand Down Expand Up @@ -67,7 +67,7 @@ static int me0600_ttli_io_reset_subdevice(struct me_subdevice *subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_ttli_io_single_config(me_subdevice_t * subdevice,
static int me0600_ttli_io_single_config(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int single_config,
Expand Down Expand Up @@ -116,7 +116,7 @@ static int me0600_ttli_io_single_config(me_subdevice_t * subdevice,
return err;
}

static int me0600_ttli_io_single_read(me_subdevice_t * subdevice,
static int me0600_ttli_io_single_read(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int *value, int time_out, int flags)
Expand Down Expand Up @@ -164,15 +164,15 @@ static int me0600_ttli_io_single_read(me_subdevice_t * subdevice,
return err;
}

static int me0600_ttli_query_number_channels(me_subdevice_t * subdevice,
static int me0600_ttli_query_number_channels(me_subdevice_t *subdevice,
int *number)
{
PDEBUG("executed.\n");
*number = 8;
return ME_ERRNO_SUCCESS;
}

static int me0600_ttli_query_subdevice_type(me_subdevice_t * subdevice,
static int me0600_ttli_query_subdevice_type(me_subdevice_t *subdevice,
int *type, int *subtype)
{
PDEBUG("executed.\n");
Expand All @@ -181,7 +181,7 @@ static int me0600_ttli_query_subdevice_type(me_subdevice_t * subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0600_ttli_query_subdevice_caps(me_subdevice_t * subdevice,
static int me0600_ttli_query_subdevice_caps(me_subdevice_t *subdevice,
int *caps)
{
PDEBUG("executed.\n");
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/meilhaus/me0900_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ me_device_t *me0900_pci_constructor(struct pci_dev *pci_device)

return (me_device_t *) me0900_device;
}
EXPORT_SYMBOL(me0900_pci_constructor);

// Init and exit of module.

Expand All @@ -175,6 +176,3 @@ MODULE_AUTHOR
MODULE_DESCRIPTION("Device Driver Module for ME-9x Device");
MODULE_SUPPORTED_DEVICE("Meilhaus ME-9x Devices");
MODULE_LICENSE("GPL");

// Export the constructor.
EXPORT_SYMBOL(me0900_pci_constructor);
12 changes: 6 additions & 6 deletions trunk/drivers/staging/meilhaus/me0900_di.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <linux/slab.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/version.h>
Expand Down Expand Up @@ -71,7 +71,7 @@ static int me0900_di_io_reset_subdevice(struct me_subdevice *subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0900_di_io_single_config(me_subdevice_t * subdevice,
static int me0900_di_io_single_config(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int single_config,
Expand Down Expand Up @@ -115,7 +115,7 @@ static int me0900_di_io_single_config(me_subdevice_t * subdevice,
return err;
}

static int me0900_di_io_single_read(me_subdevice_t * subdevice,
static int me0900_di_io_single_read(me_subdevice_t *subdevice,
struct file *filep,
int channel,
int *value, int time_out, int flags)
Expand Down Expand Up @@ -161,15 +161,15 @@ static int me0900_di_io_single_read(me_subdevice_t * subdevice,
return err;
}

static int me0900_di_query_number_channels(me_subdevice_t * subdevice,
static int me0900_di_query_number_channels(me_subdevice_t *subdevice,
int *number)
{
PDEBUG("executed.\n");
*number = 8;
return ME_ERRNO_SUCCESS;
}

static int me0900_di_query_subdevice_type(me_subdevice_t * subdevice,
static int me0900_di_query_subdevice_type(me_subdevice_t *subdevice,
int *type, int *subtype)
{
PDEBUG("executed.\n");
Expand All @@ -178,7 +178,7 @@ static int me0900_di_query_subdevice_type(me_subdevice_t * subdevice,
return ME_ERRNO_SUCCESS;
}

static int me0900_di_query_subdevice_caps(me_subdevice_t * subdevice, int *caps)
static int me0900_di_query_subdevice_caps(me_subdevice_t *subdevice, int *caps)
{
PDEBUG("executed.\n");
*caps = 0;
Expand Down
Loading

0 comments on commit 3931229

Please sign in to comment.