From 357112b6a43ec13225164060a3d7cac46393d49f Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:20:57 -0400 Subject: [PATCH] --- yaml --- r: 141659 b: refs/heads/master c: 050509fa558306399f2a987956514a8f849846ef h: refs/heads/master i: 141657: 1d46bea1e5de160a05acbffca98dc6e5f86d7536 141655: 83244ed200aafe7fd2a45a99cf65b18ef73f1791 v: v3 --- [refs] | 2 +- trunk/drivers/staging/comedi/drivers/jr3_pci.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 6df5b786b61b..273f9b3a2017 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c611ad3313831f1f79b063b282deb4248e283f39 +refs/heads/master: 050509fa558306399f2a987956514a8f849846ef diff --git a/trunk/drivers/staging/comedi/drivers/jr3_pci.c b/trunk/drivers/staging/comedi/drivers/jr3_pci.c index 8ff7b986235b..a3c887f3b2c6 100644 --- a/trunk/drivers/staging/comedi/drivers/jr3_pci.c +++ b/trunk/drivers/staging/comedi/drivers/jr3_pci.c @@ -224,17 +224,17 @@ static void set_offset(volatile struct jr3_channel *channel) set_s16(&channel->command_word0, 0x0700); } -typedef struct { +struct six_axis_t { s16 fx; s16 fy; s16 fz; s16 mx; s16 my; s16 mz; -} six_axis_t; +}; static void set_full_scales(volatile struct jr3_channel *channel, - six_axis_t full_scale) + struct six_axis_t full_scale) { printk("%d %d %d %d %d %d\n", full_scale.fx, @@ -249,9 +249,9 @@ static void set_full_scales(volatile struct jr3_channel *channel, set_s16(&channel->command_word0, 0x0a00); } -static six_axis_t get_min_full_scales(volatile struct jr3_channel *channel) +static struct six_axis_t get_min_full_scales(volatile struct jr3_channel *channel) { - six_axis_t result; + struct six_axis_t result; result.fx = get_s16(&channel->min_full_scale.fx); result.fy = get_s16(&channel->min_full_scale.fy); result.fz = get_s16(&channel->min_full_scale.fz); @@ -261,9 +261,9 @@ static six_axis_t get_min_full_scales(volatile struct jr3_channel *channel) return result; } -static six_axis_t get_max_full_scales(volatile struct jr3_channel *channel) +static struct six_axis_t get_max_full_scales(volatile struct jr3_channel *channel) { - six_axis_t result; + struct six_axis_t result; result.fx = get_s16(&channel->max_full_scale.fx); result.fy = get_s16(&channel->max_full_scale.fy); result.fz = get_s16(&channel->max_full_scale.fz); @@ -609,8 +609,8 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice * s) result = poll_delay_min_max(20, 100); } else { // Set full scale - six_axis_t min_full_scale; - six_axis_t max_full_scale; + struct six_axis_t min_full_scale; + struct six_axis_t max_full_scale; min_full_scale = get_min_full_scales(channel);