Commit cf68496f authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/fd-zio: fix reading flags

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 473eead3
......@@ -115,8 +115,12 @@ static int fd_zio_info_tdc(struct device *dev, struct zio_attribute *zattr,
*usr_val = fd->calib.tdc_user_offset;
return 0;
}
if (zattr->id == FD_ATTR_TDC_FLAGS) {
*usr_val = fd->calib.tdc_flags;
return 0;
}
/*
* Following code is about TDC values, for the last TDC event.
* For efficiency reasons at read_fifo() time, we store an
* array of integers instead of filling attributes, so here
* pick the values from our array.
......
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