Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b45864d4 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: svc: remove interface->svc pointer



Its not updated/used anymore, remove it. Also move back the struct
gb_svc to svc.c as its not referenced by external users anymore.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Tested-by: default avatarPerry Hung <perry@leaflabs.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent dcd05008
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
struct gb_interface {
	struct device dev;
	struct gb_control *control;
	struct gb_svc *svc;

	struct list_head bundles;
	struct list_head links;	/* greybus_host_device->interfaces */
+6 −0
Original line number Diff line number Diff line
@@ -9,6 +9,12 @@

#include "greybus.h"

struct gb_svc {
	struct gb_connection	*connection;
	u8			version_major;
	u8			version_minor;
};

static struct ida greybus_svc_device_id_map;

/*
+1 −6
Original line number Diff line number Diff line
@@ -10,12 +10,7 @@
#ifndef __SVC_H
#define __SVC_H

struct gb_svc {
	struct gb_connection	*connection;
	u8			version_major;
	u8			version_minor;
};

struct gb_svc;

int gb_svc_intf_device_id(struct gb_svc *svc, u8 intf_id, u8 device_id);
int gb_svc_intf_reset(struct gb_svc *svc, u8 intf_id);