Skip to content

Commit

Permalink
refactor: Give position map children labels. (zmkfirmware#2544)
Browse files Browse the repository at this point in the history
* To make is easier to reuse layouts and override the position
  maps for them, add labels to all the position map children in our
  shared layouts.
  • Loading branch information
petejohanson authored Oct 10, 2024
1 parent dab4b2c commit d3f2895
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/dts/layouts/common/60percent/all1u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
};

&layouts_common_60_percent_position_map {
layout_60_all1u {
layout_60_all1u_posmap: layout_60_all1u {
physical-layout = <&layout_60_all1u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/60percent/ansi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
};

&layouts_common_60_percent_position_map {
layout_60_ansi {
layout_60_ansi_posmap: layout_60_ansi {
physical-layout = <&layout_60_ansi>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 61>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/60percent/hhkb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
};

&layouts_common_60_percent_position_map {
layout_60_hhkb {
layout_60_hhkb_posmap: layout_60_hhkb {
physical-layout = <&layout_60_hhkb>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 60>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/60percent/iso.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
};

&layouts_common_60_percent_position_map {
layout_60_iso {
layout_60_iso_posmap: layout_60_iso {
physical-layout = <&layout_60_iso>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 62>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/65percent/all1u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
};

&layouts_common_65_percent_position_map {
layout_65_all1u {
layout_65_all1u_posmap: layout_65_all1u {
physical-layout = <&layout_65_all1u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/65percent/ansi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
};

&layouts_common_65_percent_position_map {
layout_65_ansi {
layout_65_ansi_posmap: layout_65_ansi {
physical-layout = <&layout_65_ansi>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 68 14>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/65percent/hhkb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
};

&layouts_common_65_percent_position_map {
layout_65_hhkb {
layout_65_hhkb_posmap: layout_65_hhkb {
physical-layout = <&layout_65_hhkb>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 65 14>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/65percent/iso.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
};

&layouts_common_65_percent_position_map {
layout_65_iso {
layout_65_iso_posmap: layout_65_iso {
physical-layout = <&layout_65_iso>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 69 14>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/75percent/all1u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
};

&layouts_common_75_percent_position_map {
layout_75_all1u {
layout_75_all1u_posmap: layout_75_all1u {
physical-layout = <&layout_75_all1u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/75percent/ansi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
};

&layouts_common_75_percent_position_map {
layout_75_ansi {
layout_75_ansi_posmap: layout_75_ansi {
physical-layout = <&layout_75_ansi>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/75percent/iso.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
};

&layouts_common_75_percent_position_map {
layout_75_iso {
layout_75_iso_posmap: layout_75_iso {
physical-layout = <&layout_75_iso>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_4x12/1x2u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
};

&layouts_common_ortho_4x12_position_map {
layout_ortho_4x12_1x2u {
layout_ortho_4x12_1x2u_posmap: layout_ortho_4x12_1x2u {
physical-layout = <&layout_ortho_4x12_1x2u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_4x12/2x2u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
};

&layouts_common_ortho_4x12_position_map {
layout_ortho_4x12_2x2u {
layout_ortho_4x12_2x2u_posmap: layout_ortho_4x12_2x2u {
physical-layout = <&layout_ortho_4x12_2x2u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_4x12/all1u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
};

&layouts_common_ortho_4x12_position_map {
layout_ortho_4x12_all1u {
layout_ortho_4x12_all1u_posmap: layout_ortho_4x12_all1u {
physical-layout = <&layout_ortho_4x12_all1u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_5x12/1x2u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
};

&layouts_common_ortho_5x12_position_map {
layout_ortho_5x12_1x2u {
layout_ortho_5x12_1x2u_posmap: layout_ortho_5x12_1x2u {
physical-layout = <&layout_ortho_5x12_1x2u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_5x12/2x2u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
};

&layouts_common_ortho_5x12_position_map {
layout_ortho_5x12_2x2u {
layout_ortho_5x12_2x2u_posmap: layout_ortho_5x12_2x2u {
physical-layout = <&layout_ortho_5x12_2x2u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/common/ortho_5x12/all1u.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
};

&layouts_common_ortho_5x12_position_map {
layout_ortho_5x12_all1u {
layout_ortho_5x12_all1u_posmap: layout_ortho_5x12_all1u {
physical-layout = <&layout_ortho_5x12_all1u>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/foostan/corne/5column.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
};

&layouts_foostan_corne_position_map {
five_column {
foostan_corne_5col_posmap: five_column {
physical-layout = <&foostan_corne_5col_layout>;
positions
= <36 0 1 2 3 4 5 6 7 8 9 37>
Expand Down
2 changes: 1 addition & 1 deletion app/dts/layouts/foostan/corne/6column.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
};

&layouts_foostan_corne_position_map {
twelve {
foostan_corne_6col_posmap: six {
physical-layout = <&foostan_corne_6col_layout>;
positions
= < 0 1 2 3 4 5 6 7 8 9 10 11>
Expand Down

0 comments on commit d3f2895

Please sign in to comment.