hidl: thermal: Use pragma once
Change-Id: I1fe3e3dc93fc1e16c37699582a26c362ce095ac0
This commit is contained in:
parent
85c2e220dc
commit
605b563c75
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
* 2022 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -13,8 +14,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H
|
||||
#define ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
@ -91,5 +92,3 @@ class Thermal : public IThermal {
|
||||
} // namespace thermal
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H
|
||||
|
@ -27,8 +27,7 @@
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef THERMAL_THERMAL_HELPER_H__
|
||||
#define THERMAL_THERMAL_HELPER_H__
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
@ -136,5 +135,3 @@ class ThermalHelper {
|
||||
} // namespace thermal
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // THERMAL_THERMAL_HELPER_H__
|
||||
|
@ -14,8 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef THERMAL_UTILS_CONFIG_PARSER_H__
|
||||
#define THERMAL_UTILS_CONFIG_PARSER_H__
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
@ -55,5 +54,3 @@ std::map<std::string, CoolingType> ParseCoolingDevice(std::string_view config_pa
|
||||
} // namespace thermal
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // THERMAL_UTILS_CONFIG_PARSER_H__
|
||||
|
@ -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>
|
||||
@ -51,5 +50,3 @@ class ThermalFiles {
|
||||
} // namespace thermal
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // THERMAL_UTILS_THERMAL_FILES_H_
|
||||
|
@ -13,8 +13,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef THERMAL_UTILS_THERMAL_WATCHER_H_
|
||||
#define THERMAL_UTILS_THERMAL_WATCHER_H_
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <condition_variable>
|
||||
@ -101,5 +101,3 @@ class ThermalWatcher : public ::android::Thread {
|
||||
} // namespace thermal
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
|
||||
#endif // THERMAL_UTILS_THERMAL_WATCHER_H_
|
||||
|
Loading…
Reference in New Issue
Block a user