greybus: stop storing dest_cport_id in message
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 19:26:53 +0000 (13:26 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:53:38 +0000 (12:53 -0800)
commit1f764af77c6adb3b4035b8f41b48198f251dc7f8
tree4dec4add7512c57d4122a352eb257c60ab6f3877
parent3ed67aba9f3b2af83b9b9cf7cd6f7ab25de5acc2
greybus: stop storing dest_cport_id in message

We can derive the destination CPort id of any (outbound) message
from the connection it's operation is associated with.  So we don't
need to store that information in every message.

As a result, we no longer need to record it at message initialization
time.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h