Commit b17062c2 authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: kernel: Expose ft_temperature_get() to all files

We need sensor data for Linux-hwmon API too. Thus expose the function to
retrieve temperature to all the files of FMC-TDC. Hence, declare it as
extern.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 4c7db064
......@@ -383,6 +383,8 @@ static inline void ft_disable(struct fmctdc_dev *ft, unsigned int chan)
ft_writel(ft, ien, TDC_REG_INPUT_ENABLE);
}
extern int ft_temperature_get(struct fmctdc_dev *ft, int *temp);
#endif // __KERNEL__
#endif // __FMC_TDC_H__
......@@ -124,7 +124,7 @@ static int ft_raw_mode_get(struct fmctdc_dev *ft,
static int ft_temperature_get(struct fmctdc_dev *ft, int *temp)
int ft_temperature_get(struct fmctdc_dev *ft, int *temp)
{
int stat = ft_ioread(ft, ft->ft_owregs_base + TDC_OW_REG_CSR);
......
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