提交 01983c39 编写于 作者: B Bill Pemberton 提交者: Greg Kroah-Hartman

Staging: comedi: Remove atao_board typedef

Signed-off-by: NBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 92b635c5
...@@ -151,11 +151,12 @@ Configuration options: ...@@ -151,11 +151,12 @@ Configuration options:
* boards in this way is optional, and completely driver-dependent. * boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not. * Some drivers use arrays such as this, other do not.
*/ */
typedef struct atao_board_struct { struct atao_board {
const char *name; const char *name;
int n_ao_chans; int n_ao_chans;
} atao_board; };
static const atao_board atao_boards[] = {
static const struct atao_board atao_boards[] = {
{ {
name: "ai-ao-6", name: "ai-ao-6",
n_ao_chans:6, n_ao_chans:6,
...@@ -166,7 +167,7 @@ static const atao_board atao_boards[] = { ...@@ -166,7 +167,7 @@ static const atao_board atao_boards[] = {
}, },
}; };
#define thisboard ((atao_board *)dev->board_ptr) #define thisboard ((struct atao_board *)dev->board_ptr)
struct atao_private { struct atao_private {
...@@ -188,8 +189,8 @@ static struct comedi_driver driver_atao = { ...@@ -188,8 +189,8 @@ static struct comedi_driver driver_atao = {
attach:atao_attach, attach:atao_attach,
detach:atao_detach, detach:atao_detach,
board_name:&atao_boards[0].name, board_name:&atao_boards[0].name,
offset:sizeof(atao_board), offset:sizeof(struct atao_board),
num_names:sizeof(atao_boards) / sizeof(atao_board), num_names:sizeof(atao_boards) / sizeof(struct atao_board),
}; };
COMEDI_INITCLEANUP(driver_atao); COMEDI_INITCLEANUP(driver_atao);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册