hidl: fastcharge: Use pragma once

Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72
tirimbino
Bruno Martins 3 years ago
parent 5994ab871f
commit 7b58426dbc
  1. 7
      hidl/fastcharge/FastCharge.h
  2. 7
      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,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 <hidl/MQDescriptor.h>
#include <hidl/Status.h>
@ -50,5 +49,3 @@ struct FastCharge : public IFastCharge {
} // namespace fastcharge
} // namespace lineage
} // namespace vendor
#endif // VENDOR_LINEAGE_FASTCHARGE_V1_0_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

Loading…
Cancel
Save