Commit 198ac041 authored by Federico Vaga's avatar Federico Vaga

kernel: remove kill buffer

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 79351981
......@@ -56,7 +56,7 @@ static void ft_reset_channel(struct fmctdc_dev *ft, int channel)
st->cur_seq_id = 0;
st->expected_edge = 1;
ft_zio_kill_buffer(ft, channel);
zio_trigger_abort_disable(&ft->zdev->cset[channel - FT_CH_1], 0);
}
int ft_enable_termination(struct fmctdc_dev *ft, int channel, int enable)
......@@ -119,10 +119,8 @@ void ft_enable_acquisition(struct fmctdc_dev *ft, int enable)
if (!enable) {
/* Disable all running acquisition and reset channels */
for (i = 0; i < ft->zdev->n_cset; ++i) {
for (i = 0; i < ft->zdev->n_cset; ++i)
ft_reset_channel(ft, i + FT_CH_1);
zio_trigger_abort_disable(&ft->zdev->cset[i], 0);
}
} else {
for (i = 0; i < ft->zdev->n_cset; ++i)
zio_arm_trigger(ft->zdev->cset[i].ti);
......
......@@ -74,13 +74,6 @@ static enum ft_devtype __ft_get_type(struct device *dev)
return FT_TYPE_INPUT;
}
void ft_zio_kill_buffer(struct fmctdc_dev *ft, int channel)
{
if (ft->zdev)
return;
zio_trigger_abort_disable(&ft->zdev->cset[channel - FT_CH_1], 0);
}
/* TDC input attributes: only the user offset is special */
static int ft_zio_info_channel(struct device *dev, struct zio_attribute *zattr,
uint32_t *usr_val)
......
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