From 44db14cca9d6be6c796b6b2309aa682ac4f03b30 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 13 Jan 2022 20:40:41 +0000 Subject: [PATCH] hidl: fingerprint: Use pragma once Change-Id: Id3d0a28a94f52a8f9d2c72fe41e633761557951f --- hidl/fingerprint/BiometricsFingerprint.h | 7 ++----- hidl/fingerprint/VendorConstants.h | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/hidl/fingerprint/BiometricsFingerprint.h b/hidl/fingerprint/BiometricsFingerprint.h index 9e2e3ce1..aa860c14 100644 --- a/hidl/fingerprint/BiometricsFingerprint.h +++ b/hidl/fingerprint/BiometricsFingerprint.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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 ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_3_BIOMETRICSFINGERPRINT_H -#define ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_3_BIOMETRICSFINGERPRINT_H +#pragma once #include #include @@ -118,5 +117,3 @@ struct BiometricsFingerprint : public IBiometricsFingerprint { } // namespace biometrics } // namespace hardware } // namespace android - -#endif // ANDROID_HARDWARE_BIOMETRICS_FINGERPRINT_V2_3_BIOMETRICSFINGERPRINT_H diff --git a/hidl/fingerprint/VendorConstants.h b/hidl/fingerprint/VendorConstants.h index 3af6c696..86656b3e 100644 --- a/hidl/fingerprint/VendorConstants.h +++ b/hidl/fingerprint/VendorConstants.h @@ -1,8 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2020 The LineageOS Project -#ifndef SAMSUNG_FINGERPRINT_CONSTANTS_H -#define SAMSUNG_FINGERPRINT_CONSTANTS_H +#pragma once // Fingerprint requests #define FINGERPRINT_REQUEST_ENROLL_SESSION 1002 @@ -100,5 +99,3 @@ #define SEM_SENSOR_STATUS_ERROR 100042 #define SEM_SENSOR_STATUS_OK 100040 #define SEM_SENSOR_STATUS_WORKING 100041 - -#endif // SAMSUNG_FINGERPRINT_CONSTANTS_H