summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/include/visorbus.h
diff options
context:
space:
mode:
authorDon Zickus <dzickus@redhat.com>2015-05-13 13:22:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 13:30:31 -0700
commitb4b598fdde2773f0f0498d7c1e41b088db781f11 (patch)
tree1995afb2271de2c76e86b353f560f114de200b42 /drivers/staging/unisys/include/visorbus.h
parent3032aeddd85e6499cd118246ceb44b03dd393356 (diff)
downloadlinux-b4b598fdde2773f0f0498d7c1e41b088db781f11.tar.bz2
staging: unisys: Convert device functions to pass dev_info pointer around
Most device functions pass bus_no and dev_no around and then do a lookup inside each function to find the dev_info struct. Instead just pass the pointer. This prepares us for a later conversion to using visor device. No real technical changes. Just function header changes and little cleanups as a result. Signed-off-by: Don Zickus <dzickus@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/include/visorbus.h')
-rw-r--r--drivers/staging/unisys/include/visorbus.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/unisys/include/visorbus.h b/drivers/staging/unisys/include/visorbus.h
index 3375ffdc7304..3152ba47c702 100644
--- a/drivers/staging/unisys/include/visorbus.h
+++ b/drivers/staging/unisys/include/visorbus.h
@@ -43,7 +43,7 @@ struct visor_device;
extern struct bus_type visorbus_type;
typedef void (*visorbus_state_complete_func) (struct visor_device *dev,
- int status);
+ int status, void *dev_info);
struct visorchipset_state {
u32 created:1;
u32 attached:1;
@@ -106,9 +106,11 @@ struct visor_driver {
* fails or completes successfully.
*/
int (*pause)(struct visor_device *dev,
- visorbus_state_complete_func complete_func);
+ visorbus_state_complete_func complete_func,
+ void *dev_info);
int (*resume)(struct visor_device *dev,
- visorbus_state_complete_func complete_func);
+ visorbus_state_complete_func complete_func,
+ void *dev_info);
/** These fields are for private use by the bus driver only. */
struct device_driver driver;