aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vme.h
diff options
context:
space:
mode:
authorAaron Sierra <asierra@xes-inc.com>2016-04-29 16:41:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-31 13:20:15 +0200
commitfa54b326803d91b04705a6adf0ff963593a9fe5c (patch)
tree98f6c8d87031facf1ccb9adf734d9962d21a86fb /include/linux/vme.h
parentVMCI: use memdup_user(). (diff)
downloadlinux-dev-fa54b326803d91b04705a6adf0ff963593a9fe5c.tar.xz
linux-dev-fa54b326803d91b04705a6adf0ff963593a9fe5c.zip
vme: change LM callback argument to void pointer
Make the location monitor callback function prototype more useful by changing the argument from an integer to a void pointer. All VME bridge drivers were simply passing the location monitor index (e.g. 0-3) as the argument to these callbacks. It is much more useful to pass back a pointer to data that the callback-registering driver cares about. There appear to be no in-kernel callers of vme_lm_attach (or vme_lme_request for that matter), so this change only affects the VME subsystem and bridge drivers. This has been tested with Tsi148 hardware, but the CA91Cx42 changes have only been compiled. Signed-off-by: Aaron Sierra <asierra@xes-inc.com> Acked-by: Martyn Welch <martyn@welchs.me.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/vme.h')
-rw-r--r--include/linux/vme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vme.h b/include/linux/vme.h
index 71e4a6dec5ac..ea6095deba20 100644
--- a/include/linux/vme.h
+++ b/include/linux/vme.h
@@ -166,7 +166,7 @@ struct vme_resource *vme_lm_request(struct vme_dev *);
int vme_lm_count(struct vme_resource *);
int vme_lm_set(struct vme_resource *, unsigned long long, u32, u32);
int vme_lm_get(struct vme_resource *, unsigned long long *, u32 *, u32 *);
-int vme_lm_attach(struct vme_resource *, int, void (*callback)(int));
+int vme_lm_attach(struct vme_resource *, int, void (*callback)(void *), void *);
int vme_lm_detach(struct vme_resource *, int);
void vme_lm_free(struct vme_resource *);