From 59d1c070757c948c06e8619e8138df8ea7f025c4 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 3 Jun 2024 11:39:10 -0500 Subject: [PATCH] Update Patriot Viper Steel controller files to new standardized header comment --- .../PatriotViperSteelController.cpp | 16 +++++++++------- .../PatriotViperSteelController.h | 18 ++++++++++-------- .../PatriotViperSteelControllerDetect.cpp | 15 ++++++++++++--- .../RGBController_PatriotViperSteel.cpp | 14 ++++++++------ .../RGBController_PatriotViperSteel.h | 14 ++++++++------ 5 files changed, 47 insertions(+), 30 deletions(-) diff --git a/Controllers/PatriotViperSteelController/PatriotViperSteelController.cpp b/Controllers/PatriotViperSteelController/PatriotViperSteelController.cpp index 17a13bdc..d9a716b0 100644 --- a/Controllers/PatriotViperSteelController/PatriotViperSteelController.cpp +++ b/Controllers/PatriotViperSteelController/PatriotViperSteelController.cpp @@ -1,12 +1,14 @@ -/*-----------------------------------------*\ -| PatriotViperSteelController.cpp | -| | -| Definitions and types for Patriot Viper | -| Steel RGB RAM lighting controller | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| PatriotViperSteelController.cpp | +| | +| Driver for Patriot Viper Steel RAM | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "PatriotViperSteelController.h" #include +#include "PatriotViperSteelController.h" PatriotViperSteelController::PatriotViperSteelController(i2c_smbus_interface *bus, viper_dev_id dev) { diff --git a/Controllers/PatriotViperSteelController/PatriotViperSteelController.h b/Controllers/PatriotViperSteelController/PatriotViperSteelController.h index a1a77500..741c43f9 100644 --- a/Controllers/PatriotViperSteelController/PatriotViperSteelController.h +++ b/Controllers/PatriotViperSteelController/PatriotViperSteelController.h @@ -1,15 +1,17 @@ -/*-----------------------------------------*\ -| PatriotViperController.h | -| | -| Definitions and types for Patriot Viper | -| RGB RAM lighting controller | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| PatriotViperSteelController.h | +| | +| Driver for Patriot Viper Steel RAM | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "i2c_smbus.h" -#pragma once - typedef unsigned char viper_dev_id; typedef unsigned short viper_register; diff --git a/Controllers/PatriotViperSteelController/PatriotViperSteelControllerDetect.cpp b/Controllers/PatriotViperSteelController/PatriotViperSteelControllerDetect.cpp index 110f241a..f7e057a4 100644 --- a/Controllers/PatriotViperSteelController/PatriotViperSteelControllerDetect.cpp +++ b/Controllers/PatriotViperSteelController/PatriotViperSteelControllerDetect.cpp @@ -1,3 +1,15 @@ +/*---------------------------------------------------------*\ +| PatriotViperSteelControllerDetect.cpp | +| | +| Detector for Patriot Viper Steel RAM | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include +#include +#include #include "Detector.h" #include "PatriotViperSteelController.h" #include "LogManager.h" @@ -5,9 +17,6 @@ #include "RGBController_PatriotViperSteel.h" #include "i2c_smbus.h" #include "pci_ids.h" -#include -#include -#include using namespace std::chrono_literals; #define PATRIOT_CONTROLLER_NAME "Patriot Viper Steel" diff --git a/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.cpp b/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.cpp index 2cf2f5e3..dd7a2560 100644 --- a/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.cpp +++ b/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.cpp @@ -1,9 +1,11 @@ -/*-----------------------------------------*\ -| RGBController_PatriotViperSteel.cpp | -| | -| Generic RGB Interface for OpenRGB | -| Patriot Viper Steel RGB interface | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_PatriotViperSteel.cpp | +| | +| RGBController for Patriot Viper Steel RAM | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_PatriotViperSteel.h" diff --git a/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.h b/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.h index b29f6628..afdb84c4 100644 --- a/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.h +++ b/Controllers/PatriotViperSteelController/RGBController_PatriotViperSteel.h @@ -1,9 +1,11 @@ -/*---------------------------------------------*\ -| RGBController_PatriotViperSteel.h | -| | -| Generic RGB Interface for OpenRGB | -| Patriot Viper Steel RGB interface | -\*---------------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_PatriotViperSteel.h | +| | +| RGBController for Patriot Viper Steel RAM | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once