Commit 47196bde authored by Vaibhav Gupta's avatar Vaibhav Gupta Committed by Federico Vaga

software: kernel: fmc-tdc: Update API for '(*read)' in 'struct memory_ops'

In struct memory_ops, the function-pointer (*read) is declared as
	u32 (*)(void *)

In its use, its object is given the address of function 'ioread32' (or
'ioread32be') which used to be of the same type.

Since linux-v5.8, their protype has been changed to
	u32 (*)(const void *)
at:
commit 8f28ca6bd8211214faf717677bbffe375c2a6072 ("iomap: constify ioreadX()
iomem argument (as in generic implementation)")

Hence, update the declaration of (*read) as well.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent a3480281
......@@ -120,7 +120,11 @@ struct ft_calibration_raw {
#include <linux/debugfs.h>
struct ft_memory_ops {
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
u32 (*read)(void *addr);
#else
u32 (*read)(const void *addr);
#endif
void (*write)(u32 value, void *addr);
};
......
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