summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-01-07 09:50:17 -0600
committerTom Rini <[email protected]>2026-01-12 13:14:02 -0600
commiteb2bf2bc832d34440204ad90795ca7475ede4402 (patch)
tree0f3a86c9cbd4735d99c9f2c9a6eb8c560de12a52 /scripts
parentcc1a458a3d315bd94ed2b5faf7e74baf8f667d9b (diff)
clk: mediatek: mt7623: set unmapped IDs to -1
Add range initializers to the id_offs_map arrays in the mt7623 clk driver to set unmapped IDs to -1. This prevents accidental usage of unmapped IDs that would otherwise map to 0. mtk_common_clk_of_xlate() checks these values for < 0 and returns -ENOENT in that case. A range initializer covering the entire array is used since it is less error-prone than manually looking up the value of each macro in the existing initializers and checking for gaps. It is placed first so that the specific initializers override it. Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions