From 7b58426dbcfa8392c7921f35b2b7edd083a11a5a Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 13 Jan 2022 20:37:05 +0000 Subject: [PATCH] hidl: fastcharge: Use pragma once Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72 --- hidl/fastcharge/FastCharge.h | 7 ++----- hidl/fastcharge/include/samsung_fastcharge.h | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/hidl/fastcharge/FastCharge.h b/hidl/fastcharge/FastCharge.h index 2d5a6536..28ccfe20 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 1eec1296..2b6be5a2 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