From: Bruno Martins Date: Thu, 13 Jan 2022 20:37:05 +0000 (+0000) Subject: hidl: fastcharge: Use pragma once X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b58426dbcfa8392c7921f35b2b7edd083a11a5a;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git hidl: fastcharge: Use pragma once Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72 --- diff --git a/hidl/fastcharge/FastCharge.h b/hidl/fastcharge/FastCharge.h index 2d5a653..28ccfe2 100644 --- a/hidl/fastcharge/FastCharge.h +++ b/hidl/fastcharge/FastCharge.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2021 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_FASTCHARGE_V1_0_FASTCHARGE_H -#define VENDOR_LINEAGE_FASTCHARGE_V1_0_FASTCHARGE_H +#pragma once #include #include @@ -50,5 +49,3 @@ struct FastCharge : public IFastCharge { } // namespace fastcharge } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_FASTCHARGE_V1_0_FASTCHARGE_H diff --git a/hidl/fastcharge/include/samsung_fastcharge.h b/hidl/fastcharge/include/samsung_fastcharge.h index 1eec129..2b6be5a 100644 --- a/hidl/fastcharge/include/samsung_fastcharge.h +++ b/hidl/fastcharge/include/samsung_fastcharge.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2021 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_FASTCHARGE_H -#define SAMSUNG_FASTCHARGE_H +#pragma once #define FASTCHARGE_DEFAULT_SETTING true #define FASTCHARGE_PATH "/sys/class/sec/switch/afc_disable" - -#endif // SAMSUNG_FASTCHARGE_H