interconnect: Add a common standard aggregate function
commit3172e4d276315afa82c12b14c8dd0db526c7aff1
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 28 Nov 2019 13:48:38 +0000 (28 15:48 +0200)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 16 Dec 2019 07:25:24 +0000 (16 09:25 +0200)
tree877fb52d6afa9e4f3e86dab3bdd5ed41dfbd8c98
parentc46ab9db64979b0875fff79e1b00013343ca8286
interconnect: Add a common standard aggregate function

Currently there is one very standard aggregation method that is used by
several drivers. Let's add this as a common function, so that drivers
could just point to it, instead of copy/pasting code.

Suggested-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h