greybus: svc: clean up gb_svc struct for pwrmon
commit3fd747a63e836baab1739bab7f18d9227a083312
authorDavid Lin <dtwlin@google.com>
Sat, 23 Apr 2016 02:03:42 +0000 (22 19:03 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 25 Apr 2016 18:13:59 +0000 (25 11:13 -0700)
tree406b15114c94ecb17046a240a2dda440e9e5d6b5
parentb482b0d6f099e282c7499b5b1a3a69747bf4fa8b
greybus: svc: clean up gb_svc struct for pwrmon

The power rail names and counts are unnecessarily stored in the gb_svc
structure once the SVC created, this causes waste of memory usage. This
patch removes rail names and rail counts storage from th gb_svc
structure.

Testing Done:
- Validated the readings from /d/greybus/1-svc/pwrmon/*

Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h