diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-03-09 12:20:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-10 13:57:42 -0800 |
commit | 52bbd5b3a04816cdd65605c53dd033d3d987cfee (patch) | |
tree | 6cd091967da7c552ff9c890502a60028b5992e5b /drivers/staging/greybus/interface.h | |
parent | 83a124e2c57afee205284f8d5263252a4b8bbfac (diff) |
greybus: interface: remove unused drvdata helpers
Remove the unused interface drvdata helpers along with some dubious
comments about public and private definitions.
Greybus drivers bind to bundles and should be using the
greybus_set_drvdata and greybus_get_drvdata helpers.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r-- | drivers/staging/greybus/interface.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index 6a198801523b..ebc51fc5c364 100644 --- a/drivers/staging/greybus/interface.h +++ b/drivers/staging/greybus/interface.h @@ -10,7 +10,6 @@ #ifndef __INTERFACE_H #define __INTERFACE_H -/* Greybus "public" definitions" */ struct gb_interface { struct device dev; struct gb_control *control; @@ -43,19 +42,6 @@ struct gb_interface { }; #define to_gb_interface(d) container_of(d, struct gb_interface, dev) -static inline void gb_interface_set_drvdata(struct gb_interface *intf, - void *data) -{ - dev_set_drvdata(&intf->dev, data); -} - -static inline void *gb_interface_get_drvdata(struct gb_interface *intf) -{ - return dev_get_drvdata(&intf->dev); -} - -/* Greybus "private" definitions */ - struct gb_interface *gb_interface_find(struct gb_host_device *hd, u8 interface_id); |