hidl: powershare: Use pragma once

Change-Id: I9cfeed5e79c35139f7532c522dad0ca25ed35fe1
tirimbino
Bruno Martins 3 years ago
parent 0094b44226
commit 85c2e220dc
  1. 7
      hidl/powershare/PowerShare.h
  2. 7
      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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,8 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef VENDOR_LINEAGE_POWERSHARE_V1_0_POWERSHARE_H #pragma once
#define VENDOR_LINEAGE_POWERSHARE_V1_0_POWERSHARE_H
#include <hidl/MQDescriptor.h> #include <hidl/MQDescriptor.h>
#include <hidl/Status.h> #include <hidl/Status.h>
@ -50,5 +49,3 @@ struct PowerShare : public IPowerShare {
} // namespace powershare } // namespace powershare
} // namespace lineage } // namespace lineage
} // namespace vendor } // namespace vendor
#endif // VENDOR_LINEAGE_POWERSHARE_V1_0_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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,10 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef SAMSUNG_POWERSHARE_H #pragma once
#define SAMSUNG_POWERSHARE_H
#define POWERSHARE_PATH "/sys/class/power_supply/battery/wc_tx_en" #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" #define POWERSHARE_STOP_CAPACITY_PATH "/sys/class/power_supply/battery/wc_tx_stop_capacity"
#endif // SAMSUNG_POWERSHARE_H

Loading…
Cancel
Save