Commit 46d52fa7 authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: enable_auto_start is device-specific

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ad3e941e
......@@ -84,7 +84,7 @@ void zfad_dma_done(struct zio_cset *cset)
}
/* Automatic start next acquisition */
if (enable_auto_start) {
if (fa->enable_auto_start) {
dev_dbg(&fa->fmc->dev, "Automatic start\n");
zfad_fsm_command(fa, ZFA_START);
}
......
......@@ -23,7 +23,6 @@
#include "fmc-adc.h"
int enable_auto_start = 0;
static int enable_test_data = 0;
module_param(enable_test_data, int, 0444);
......@@ -172,7 +171,7 @@ static int zfad_conf_set(struct device *dev, struct zio_attribute *zattr,
*/
case ZFA_SW_R_NOADDERS_AUTO:
enable_auto_start = usr_val;
fa->enable_auto_start = usr_val;
return 0;
/* FIXME temporary until TLV control */
case ZFA_CH1_OFFSET:
......
......@@ -10,10 +10,10 @@
#include <linux/scatterlist.h>
#include <linux/fmc.h>
#include <linux/zio.h>
#include "field-desc.h"
#define FA_GATEWARE_DEFAULT_NAME "fmc/adc-100m14b.bin"
extern int enable_auto_start;
#define FA_NCHAN 4 /* We have 4 of them,no way out of it */
......@@ -120,6 +120,9 @@ struct fa_dev {
/* Calibration Data */
struct fa_calib calib;
/* flag */
int enable_auto_start;
/* DMA attributes */
struct sg_table sgt;
struct fa_dma_item *items;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment