diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-09-09 19:47:38 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-10-24 05:36:56 +0300 |
commit | 15f5e2e4225a94fe76302e87ecdf95e56e571382 (patch) | |
tree | 96e90d27a6af3622a6cf8e3e6b153e701ee490e4 /net/wireless/debugfs.h | |
parent | f234f028727f8634973f8a9ef2ec933eb0eade5b (diff) | |
download | linux-15f5e2e4225a94fe76302e87ecdf95e56e571382.tar.xz |
clk: si570: Simplify probe
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 adding struct clk_si570_info as match data
instead of clk_si570_variant and replace the ID lookup table for
the match data by i2c_get_match_data(). This allows to simplify
probe().
Drop enum clk_si570_variant 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/20230909164738.47708-1-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'net/wireless/debugfs.h')
0 files changed, 0 insertions, 0 deletions