/*
* 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.
* 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>
} // namespace thermal
} // namespace hardware
} // namespace android
-
-#endif // ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef THERMAL_THERMAL_HELPER_H__
-#define THERMAL_THERMAL_HELPER_H__
+#pragma once
#include <array>
#include <chrono>
} // namespace thermal
} // namespace hardware
} // namespace android
-
-#endif // THERMAL_THERMAL_HELPER_H__
* limitations under the License.
*/
-#ifndef THERMAL_UTILS_CONFIG_PARSER_H__
-#define THERMAL_UTILS_CONFIG_PARSER_H__
+#pragma once
#include <map>
#include <string>
} // namespace thermal
} // namespace hardware
} // namespace android
-
-#endif // THERMAL_UTILS_CONFIG_PARSER_H__
* limitations under the License.
*/
-#ifndef THERMAL_UTILS_THERMAL_FILES_H_
-#define THERMAL_UTILS_THERMAL_FILES_H_
+#pragma once
#include <string>
#include <unordered_map>
} // namespace thermal
} // namespace hardware
} // namespace android
-
-#endif // THERMAL_UTILS_THERMAL_FILES_H_
* 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>
} // namespace thermal
} // namespace hardware
} // namespace android
-
-#endif // THERMAL_UTILS_THERMAL_WATCHER_H_