sm6250-common: Update thermal HAL

* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7.

Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
This commit is contained in:
Alexander Winkowski
2021-10-12 13:00:29 +02:00
parent 27f575c973
commit 7f99605ccc
19 changed files with 2884 additions and 252 deletions

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef THERMAL_UTILS_THERMAL_FILES_H_
#define THERMAL_UTILS_THERMAL_FILES_H_
#pragma once
#include <string>
#include <unordered_map>
@ -40,6 +39,7 @@ class ThermalFiles {
// data to empty and return false. If the thermal_name is found and its content
// is read, this function will fill in data accordingly then return true.
bool readThermalFile(std::string_view thermal_name, std::string *data) const;
bool writeCdevFile(std::string_view thermal_name, std::string_view data);
size_t getNumThermalFiles() const { return thermal_name_to_path_map_.size(); }
private:
@ -51,5 +51,3 @@ class ThermalFiles {
} // namespace thermal
} // namespace hardware
} // namespace android
#endif // THERMAL_UTILS_THERMAL_FILES_H_