]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
clk: clk-cdce706: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:40 +0000 (12:55 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 25 Jun 2019 22:55:39 +0000 (15:55 -0700)
We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-cdce706.c

index f21d9092564f5abc7d96655e1bf22922d1614bbf..476d29c013e5bdcac571ad65911c65215da18e37 100644 (file)
@@ -633,7 +633,7 @@ of_clk_cdce_get(struct of_phandle_args *clkspec, void *data)
 static int cdce706_probe(struct i2c_client *client,
                         const struct i2c_device_id *id)
 {
-       struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+       struct i2c_adapter *adapter = client->adapter;
        struct cdce706_dev_data *cdce;
        int ret;