diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-04-23 18:47:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-04-25 11:08:30 -0700 |
commit | 1e8e22b5cb462e9c4da9c988b3355565cdef1d34 (patch) | |
tree | 5376b55f4ebaaf4e494a62f8b88e24bd214ac595 /drivers/staging/greybus/svc.c | |
parent | 017482b28decd5b72da2c6c661249e512e6665a8 (diff) |
greybus: svc: add stub interface-activate function
Add message structures (based on the current spec) for the SVC Interface
Activate operation, and a stub function that always return the Greybus
interface type.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/svc.c')
-rw-r--r-- | drivers/staging/greybus/svc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index cac9789b8f67..1b370195e4c3 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -274,6 +274,15 @@ int gb_svc_intf_unipro_set(struct gb_svc *svc, u8 intf_id, bool enable) return 0; } +int gb_svc_intf_activate(struct gb_svc *svc, u8 intf_id, u8 *intf_type) +{ + /* FIXME: implement */ + + *intf_type = GB_SVC_INTF_TYPE_GREYBUS; + + return 0; +} + int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector, u32 *value) { |