aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/rockchip
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2023-09-09 16:05:16 +0100
committerStephen Boyd <sboyd@kernel.org>2023-10-23 19:38:51 -0700
commitfaf6b92ee0091ff7a7bba03a1726a1a97112e9db (patch)
treead4b355dbc726eb3f0232a58d093c665111dba68 /drivers/clk/rockchip
parentclk: si570: Simplify probe (diff)
downloadwireguard-linux-faf6b92ee0091ff7a7bba03a1726a1a97112e9db.tar.xz
wireguard-linux-faf6b92ee0091ff7a7bba03a1726a1a97112e9db.zip
clk: cdce925: Extend match support for OF tables
The driver has an OF match table, still, it uses an ID lookup table for retrieving match data. Currently, the driver is working on the assumption that an I2C device registered via OF will always match a legacy I2C device ID. The correct approach is to have an OF device ID table using i2c_get_match_data() if the devices are registered via OF/ID. Unify the OF/ID table by using struct clk_cdce925_chip_info as match data for both these tables and replace the ID lookup table for the match data by i2c_get_match_data(). Split the array clk_cdce925_chip_info_tbl[] as individual variables, and make lines shorter by referring to e.g. &clk_cdce913_info instead of &clk_cdce925_chip_info_tbl[CDCE913]. Drop enum related to chip type as there is no user. While at it, remove the trailing comma in the terminator entry for the OF table making code robust against (theoretical) misrebases or other similar things where the new entry goes _after_ the termination without the compiler noticing. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/20230909150516.10353-1-biju.das.jz@bp.renesas.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/rockchip')
0 files changed, 0 insertions, 0 deletions