+static const struct file_operations cdns_reg_fops = {
+       .open = simple_open,
+       .read = cdns_reg_read,
+       .llseek = default_llseek,
+};

DEFINE_SHOW_ATTRIBUTE()?

I remember looking at this but can't recall why I left it this way.
That was before my Summer break so will relook, thanks for suggesting this.

Reply via email to