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