diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-06-08 12:55:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-10 17:29:50 +0200 |
commit | 3cc2decc6a08ecd71f95ec259b3c008f239eb185 (patch) | |
tree | efa8c12e6a0b9c21987fd4273980e077da813c34 | |
parent | 1a0911a06c238a3ae7dfcd4ea309b0a280c4e5ff (diff) |
misc: tsl2550: simplify getting the adapter of a client
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/tsl2550.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c index 5b7afd6190fe..09db397df287 100644 --- a/drivers/misc/tsl2550.c +++ b/drivers/misc/tsl2550.c @@ -336,7 +336,7 @@ static struct i2c_driver tsl2550_driver; static int tsl2550_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 tsl2550_data *data; int *opmode, err = 0; |