From 85c2e220dc8a5c3fa3dc1da7841ce7aa79095bf2 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 13 Jan 2022 20:44:10 +0000 Subject: [PATCH] hidl: powershare: Use pragma once Change-Id: I9cfeed5e79c35139f7532c522dad0ca25ed35fe1 --- hidl/powershare/PowerShare.h | 7 ++----- hidl/powershare/include/samsung_powershare.h | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/hidl/powershare/PowerShare.h b/hidl/powershare/PowerShare.h index ebb2e95d..7d87bafe 100644 --- a/hidl/powershare/PowerShare.h +++ b/hidl/powershare/PowerShare.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 The LineageOS Project + * Copyright (C) 2020-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_POWERSHARE_V1_0_POWERSHARE_H -#define VENDOR_LINEAGE_POWERSHARE_V1_0_POWERSHARE_H +#pragma once #include #include @@ -50,5 +49,3 @@ struct PowerShare : public IPowerShare { } // namespace powershare } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_POWERSHARE_V1_0_POWERSHARE_H diff --git a/hidl/powershare/include/samsung_powershare.h b/hidl/powershare/include/samsung_powershare.h index 8e7c88b8..0963ca0b 100644 --- a/hidl/powershare/include/samsung_powershare.h +++ b/hidl/powershare/include/samsung_powershare.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 The LineageOS Project + * Copyright (C) 2020-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. @@ -14,10 +14,7 @@ * limitations under the License. */ -#ifndef SAMSUNG_POWERSHARE_H -#define SAMSUNG_POWERSHARE_H +#pragma once #define POWERSHARE_PATH "/sys/class/power_supply/battery/wc_tx_en" #define POWERSHARE_STOP_CAPACITY_PATH "/sys/class/power_supply/battery/wc_tx_stop_capacity" - -#endif // SAMSUNG_POWERSHARE_H