summaryrefslogtreecommitdiff
path: root/keyboards/tronguylabs/m122_3270
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-01 17:37:12 +1000
committerGitHub <noreply@github.com>2023-05-01 17:37:12 +1000
commit2944e938703e2049bb6262a0ab31e701d27e8ab3 (patch)
treea73caa75fafe8b7926e18886d603c032d246fcac /keyboards/tronguylabs/m122_3270
parent12d42cedd2624db0d5cfe6f538211f9dfcd19822 (diff)
Move `USB_MAX_POWER_CONSUMPTION` to data driven (#20648)
Diffstat (limited to 'keyboards/tronguylabs/m122_3270')
-rw-r--r--keyboards/tronguylabs/m122_3270/config.h21
-rw-r--r--keyboards/tronguylabs/m122_3270/info.json3
2 files changed, 2 insertions, 22 deletions
diff --git a/keyboards/tronguylabs/m122_3270/config.h b/keyboards/tronguylabs/m122_3270/config.h
deleted file mode 100644
index 754e0977c4..0000000000
--- a/keyboards/tronguylabs/m122_3270/config.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright 2021 James R. Maynard III <jaymaynard@gmail.com>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-
-// Both controllers draw 100 mA or less
-#define USB_MAX_POWER_CONSUMPTION 100
diff --git a/keyboards/tronguylabs/m122_3270/info.json b/keyboards/tronguylabs/m122_3270/info.json
index 2dae824cc4..364ab250dc 100644
--- a/keyboards/tronguylabs/m122_3270/info.json
+++ b/keyboards/tronguylabs/m122_3270/info.json
@@ -4,7 +4,8 @@
"maintainer": "jmaynard",
"usb": {
"vid": "0x1209",
- "pid": "0x3270"
+ "pid": "0x3270",
+ "max_power": 100
},
"debounce": 15,
"layouts": {