mirror of https://gitee.com/openkylin/linux.git
staging: comedi: das16: tidy up private data definition
Remove the comments and add some whitespace to help readability. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c04fc1a589
commit
10206ef632
|
@ -443,30 +443,22 @@ static inline int timer_period(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct das16_private_struct {
|
struct das16_private_struct {
|
||||||
unsigned int clockbase; /* master clock speed in ns */
|
unsigned int clockbase;
|
||||||
unsigned int ctrl_reg;
|
unsigned int ctrl_reg;
|
||||||
unsigned long adc_byte_count; /* number of bytes remaining */
|
unsigned long adc_byte_count;
|
||||||
/* divisor dividing master clock to get conversion frequency */
|
unsigned int divisor1;
|
||||||
unsigned int divisor1;
|
unsigned int divisor2;
|
||||||
/* divisor dividing master clock to get conversion frequency */
|
unsigned int dma_chan;
|
||||||
unsigned int divisor2;
|
uint16_t *dma_buffer[2];
|
||||||
unsigned int dma_chan; /* dma channel */
|
dma_addr_t dma_buffer_addr[2];
|
||||||
uint16_t *dma_buffer[2];
|
unsigned int current_buffer;
|
||||||
dma_addr_t dma_buffer_addr[2];
|
unsigned int dma_transfer_size;
|
||||||
unsigned int current_buffer;
|
struct comedi_lrange *user_ai_range_table;
|
||||||
unsigned int dma_transfer_size; /* target number of bytes to transfer per dma shot */
|
struct comedi_lrange *user_ao_range_table;
|
||||||
/**
|
struct timer_list timer;
|
||||||
* user-defined analog input and output ranges
|
short timer_running;
|
||||||
* defined from config options
|
unsigned long extra_iobase;
|
||||||
*/
|
unsigned int can_burst:1;
|
||||||
struct comedi_lrange *user_ai_range_table;
|
|
||||||
struct comedi_lrange *user_ao_range_table;
|
|
||||||
|
|
||||||
struct timer_list timer; /* for timed interrupt */
|
|
||||||
short timer_running;
|
|
||||||
|
|
||||||
unsigned long extra_iobase;
|
|
||||||
unsigned int can_burst:1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void das16_ai_enable(struct comedi_device *dev,
|
static void das16_ai_enable(struct comedi_device *dev,
|
||||||
|
|
Loading…
Reference in New Issue