OSDN Git Service

iio: light: bh1780: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:42 +0000 (12:55 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Jun 2019 20:06:43 +0000 (21:06 +0100)
commitaa7093299253a8c4cb5bd0053ab9c8128beba5e4
tree2b41d266b23f93cc0aee6bdf3b7824db7d7f23f6
parent3c23e9e8085308d7d960b920af145938a103ddc5
iio: light: bh1780: 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/bh1780.c