summaryrefslogtreecommitdiff
path: root/keyboards/launchpad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/launchpad')
-rw-r--r--keyboards/launchpad/config.h5
-rw-r--r--keyboards/launchpad/launchpad.h10
-rw-r--r--keyboards/launchpad/rev1/rev1.h26
3 files changed, 15 insertions, 26 deletions
diff --git a/keyboards/launchpad/config.h b/keyboards/launchpad/config.h
index e9a13a3bdf..327d67016b 100644
--- a/keyboards/launchpad/config.h
+++ b/keyboards/launchpad/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
#include "config_common.h"
@@ -65,5 +64,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef SUBPROJECT_rev1
#include "rev1/config.h"
#endif
-
-#endif
diff --git a/keyboards/launchpad/launchpad.h b/keyboards/launchpad/launchpad.h
index 85432de0ad..59cf64afec 100644
--- a/keyboards/launchpad/launchpad.h
+++ b/keyboards/launchpad/launchpad.h
@@ -1,11 +1,7 @@
-#ifndef LAUNCHPAD_H
-#define LAUNCHPAD_H
+#pragma once
-#ifdef KEYBOARD_launchpad_rev1
- #include "rev1.h"
+#if defined(KEYBOARD_launchpad_rev1)
+# include "rev1.h"
#endif
#include "quantum.h"
-
-
-#endif
diff --git a/keyboards/launchpad/rev1/rev1.h b/keyboards/launchpad/rev1/rev1.h
index 6644db8300..2ea6e7e775 100644
--- a/keyboards/launchpad/rev1/rev1.h
+++ b/keyboards/launchpad/rev1/rev1.h
@@ -1,21 +1,17 @@
-#ifndef REV1_H
-#define REV1_H
+#pragma once
#include "../launchpad.h"
#include "quantum.h"
#define LAYOUT( \
- K00, K01, \
- K10, K11, \
- K20, K21, \
- K30, K31 \
- ) \
- { \
- { K00, K01 }, \
- { K10, K11 }, \
- { K20, K21 }, \
- { K30, K31 } \
- }
-
-#endif
+ k00, k01, \
+ k10, k11, \
+ k20, k21, \
+ k30, k31 \
+) { \
+ { k00, k01 }, \
+ { k10, k11 }, \
+ { k20, k21 }, \
+ { k30, k31 } \
+}