]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: mediatek: add array size field for id_offs_map
authorDavid Lechner <dlechner@baylibre.com>
Wed, 7 Jan 2026 15:50:13 +0000 (09:50 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jan 2026 19:14:02 +0000 (13:14 -0600)
commit6094f0a040765932dd7820941fd77e25c6dd4e34
treec2c2cafcd5a18a980a644da50c2fbc7ff841aaed
parent538f72f4038652be5bbb907f23fbc74dad682a19
clk: mediatek: add array size field for id_offs_map

Add id_offs_map_size field to struct mtk_clk_tree and populate it for
all existing drivers.

Currently, there is no bounds checking when accessing the id_offs_map
array. Adding this field will allow for bounds checking in the future.

Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/clk/mediatek/clk-mt7623.c
drivers/clk/mediatek/clk-mt8188.c
drivers/clk/mediatek/clk-mtk.h