Staging: comedi: Remove a2150_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
43313b0734
commit
92b635c5be
1 changed files with 4 additions and 4 deletions
|
@ -119,12 +119,12 @@ TRIG_WAKE_EOS
|
||||||
#define I8253_MODE_REG 0x17
|
#define I8253_MODE_REG 0x17
|
||||||
#define HW_COUNT_DISABLE 0x30 // disable hardware counting of conversions
|
#define HW_COUNT_DISABLE 0x30 // disable hardware counting of conversions
|
||||||
|
|
||||||
typedef struct a2150_board_struct {
|
struct a2150_board {
|
||||||
const char *name;
|
const char *name;
|
||||||
int clock[4]; // master clock periods, in nanoseconds
|
int clock[4]; // master clock periods, in nanoseconds
|
||||||
int num_clocks; // number of available master clock speeds
|
int num_clocks; // number of available master clock speeds
|
||||||
int ai_speed; // maximum conversion rate in nanoseconds
|
int ai_speed; // maximum conversion rate in nanoseconds
|
||||||
} a2150_board;
|
};
|
||||||
|
|
||||||
//analog input range
|
//analog input range
|
||||||
static const struct comedi_lrange range_a2150 = {
|
static const struct comedi_lrange range_a2150 = {
|
||||||
|
@ -136,7 +136,7 @@ static const struct comedi_lrange range_a2150 = {
|
||||||
|
|
||||||
// enum must match board indices
|
// enum must match board indices
|
||||||
enum { a2150_c, a2150_s };
|
enum { a2150_c, a2150_s };
|
||||||
static const a2150_board a2150_boards[] = {
|
static const struct a2150_board a2150_boards[] = {
|
||||||
{
|
{
|
||||||
name: "at-a2150c",
|
name: "at-a2150c",
|
||||||
clock: {31250, 22676, 20833, 19531},
|
clock: {31250, 22676, 20833, 19531},
|
||||||
|
@ -154,7 +154,7 @@ static const a2150_board a2150_boards[] = {
|
||||||
/*
|
/*
|
||||||
* Useful for shorthand access to the particular board structure
|
* Useful for shorthand access to the particular board structure
|
||||||
*/
|
*/
|
||||||
#define thisboard ((const a2150_board *)dev->board_ptr)
|
#define thisboard ((const struct a2150_board *)dev->board_ptr)
|
||||||
|
|
||||||
struct a2150_private {
|
struct a2150_private {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue