summaryrefslogtreecommitdiff
path: root/README.devel
AgeCommit message (Expand)AuthorFilesLines
2016-04-29doc: Document Travis CI Coverity integrationTobias Klauser1-2/+7
2015-08-25doc: Rename BUILD to README.devel and add information about CoverityTobias Klauser1-0/+12
'>mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-08-16 22:31:57 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-18 17:34:01 +0200
commitb5fbe819af2f8d8dceb421635a976462bb6885b8 (patch)
treee66b0b76e99aa3bb11aa57f8626619f40ce183ec /drivers
parent5f66d62e8372d8a9c97bd75d772a5a5788925218 (diff)
greybus: power_supply: invalidate cache at update request
When we receive a update request we shall not trust the cache mechanism and for that we need a way to invalidate the cache. Add a field that will control the cache status and refactor the code to check if cache is valid in a helper function. This will fix the scenario where an update request is received within the cache expiration time after a previous update as happened and would be ignored. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/power_supply.c31
1 files changed, 26 insertions, 5 deletions
diff --git a/drivers/staging/greybus/power_supply.c b/drivers/staging/greybus/power_supply.c