Commit 25f66f51 authored by Vaibhav Gupta's avatar Vaibhav Gupta

driver: zio: calibrate: CS7 supports newer functions.

As per tovalds/linux, the kernel version below 4.14 support
	fd_update_calibration(unsigned long arg)
and not
	fd_update_calibration(struct timer_list *arg)
But even though CS7 is 3.10 based, patches might
have been backported, and it supports the latest one.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 24cbe7e3
......@@ -216,17 +216,17 @@ int fd_calibrate_outputs(struct fd_dev *fd)
/**
* fd_update_calibration
* Called from a timer any few seconds. It updates the Delay line tap
* according to the measured temperature
* according to the measured temperature.
*
* As per tovalds/linux, the kernel version below 4.14 support
* fd_update_calibration(unsigned long arg)
* and not the other one. But even though CS7 is 3.10 based, patches might
* have been backported, and it supports the other one.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
void fd_update_calibration(unsigned long arg)
{
struct fd_dev *fd = (void *)arg;
#else
void fd_update_calibration(struct timer_list *arg)
{
struct fd_dev *fd = from_timer(fd, arg, temp_timer);
#endif
int ch, fitted, new;
fd_read_temp(fd, 0 /* not verbose */);
......
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