fix: Fix inconsistent column offset property
Renamed the composite kscan's column-offset property to col-offset for consistency with other properties such as matrix transform's col-offset and matrix kscan's col-gpios.
This commit is contained in:
parent
9320271dde
commit
c7473fc325
5 changed files with 13 additions and 8 deletions
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
right {
|
||||
kscan = <&kscan_right>;
|
||||
column-offset = <5>;
|
||||
col-offset = <5>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ kscan_direct: kscan_direct {
|
|||
direct {
|
||||
kscan = <&kscan_direct>;
|
||||
row-offset = <1>;
|
||||
column-offset = <8>;
|
||||
col-offset = <8>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ child-binding:
|
|||
row-offset:
|
||||
type: int
|
||||
default: 0
|
||||
col-offset:
|
||||
type: int
|
||||
default: 0
|
||||
|
||||
column-offset:
|
||||
type: int
|
||||
default: 0
|
||||
deprecated: true
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ struct kscan_composite_child_config {
|
|||
#define CHILD_CONFIG(inst) \
|
||||
{.child = DEVICE_DT_GET(DT_PHANDLE(inst, kscan)), \
|
||||
.row_offset = DT_PROP(inst, row_offset), \
|
||||
.column_offset = DT_PROP(inst, column_offset)},
|
||||
.column_offset = DT_PROP_OR(inst, col_offset, DT_PROP(inst, column_offset))},
|
||||
|
||||
struct kscan_composite_config {
|
||||
const struct kscan_composite_child_config *children;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue