~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to drivers/staging/meilhaus/me4600_di.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
#include <linux/slab.h>
38
38
#include <linux/spinlock.h>
39
 
#include <asm/io.h>
 
39
#include <linux/io.h>
40
40
#include <linux/types.h>
41
41
 
42
42
#include "medefines.h"
91
91
        return ME_ERRNO_SUCCESS;
92
92
}
93
93
 
94
 
static int me4600_di_io_single_config(me_subdevice_t * subdevice,
 
94
static int me4600_di_io_single_config(me_subdevice_t *subdevice,
95
95
                                      struct file *filep,
96
96
                                      int channel,
97
97
                                      int single_config,
133
133
        return err;
134
134
}
135
135
 
136
 
static int me4600_di_io_single_read(me_subdevice_t * subdevice,
 
136
static int me4600_di_io_single_read(me_subdevice_t *subdevice,
137
137
                                    struct file *filep,
138
138
                                    int channel,
139
139
                                    int *value, int time_out, int flags)
177
177
        return err;
178
178
}
179
179
 
180
 
static int me4600_di_query_number_channels(me_subdevice_t * subdevice,
 
180
static int me4600_di_query_number_channels(me_subdevice_t *subdevice,
181
181
                                           int *number)
182
182
{
183
183
        PDEBUG("executed.\n");
185
185
        return ME_ERRNO_SUCCESS;
186
186
}
187
187
 
188
 
static int me4600_di_query_subdevice_type(me_subdevice_t * subdevice,
 
188
static int me4600_di_query_subdevice_type(me_subdevice_t *subdevice,
189
189
                                          int *type, int *subtype)
190
190
{
191
191
        PDEBUG("executed.\n");
194
194
        return ME_ERRNO_SUCCESS;
195
195
}
196
196
 
197
 
static int me4600_di_query_subdevice_caps(me_subdevice_t * subdevice, int *caps)
 
197
static int me4600_di_query_subdevice_caps(me_subdevice_t *subdevice, int *caps)
198
198
{
199
199
        PDEBUG("executed.\n");
200
200
        *caps = 0;
202
202
}
203
203
 
204
204
me4600_di_subdevice_t *me4600_di_constructor(uint32_t reg_base,
205
 
                                             spinlock_t * ctrl_reg_lock)
 
205
                                             spinlock_t *ctrl_reg_lock)
206
206
{
207
207
        me4600_di_subdevice_t *subdevice;
208
208
        int err;