Skip to content

Commit

Permalink
hidl: fastcharge: Use pragma once
Browse files Browse the repository at this point in the history
Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72
  • Loading branch information
bgcngm committed Jan 13, 2022
1 parent 5994ab8 commit 7b58426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions hidl/fastcharge/FastCharge.h
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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>
Expand Down Expand Up @@ -50,5 +49,3 @@ struct FastCharge : public IFastCharge {
} // namespace fastcharge
} // namespace lineage
} // namespace vendor

#endif // VENDOR_LINEAGE_FASTCHARGE_V1_0_FASTCHARGE_H
7 changes: 2 additions & 5 deletions hidl/fastcharge/include/samsung_fastcharge.h
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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

0 comments on commit 7b58426

Please sign in to comment.