mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-07-02 15:59:52 +09:00
sm6250-common: Update thermal HAL
* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7. Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
This commit is contained in:
@ -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_
|
||||
|
Reference in New Issue
Block a user