commit | 3df8429b2269f716551b7daeb6a9196a7fc82b43 | [log] [tgz] |
---|---|---|
author | Santosh Mardi <gsantosh@codeaurora.org> | Fri Dec 06 22:18:11 2019 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Dec 17 23:17:51 2019 -0800 |
tree | d391258bdedb3b4366d0ed3eb371c47bec2453d9 | |
parent | e4f5f922ac6ebde67070cb77f20ca38a027aa51e [diff] |
devfreq: check if get_dev_status is implemented before calling it devfreq governor code calls the devfreq profile's callback get_dev_status to return the device status. Not all devices implement this optional callback. Hence check if the callback is present before accessing it. Change-Id: I8fe8ff367ccdcb82ad686e47186258c4cd086696 Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org> Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>