iio:chemical:sgp30: Use local variable dev to simplify code
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:30 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:41:32 +0000 (18:41 +0100)
commitcb26d236861ca6a3354f1623ae5b9c049fd2f972
tree04258c153e0b3bf15df3fc6bc682d391c26be0d0
parenta867e8986759bf25251c8cad3798cba0e4c25a6e
iio:chemical:sgp30: Use local variable dev to simplify code

This cleans up the code at bit, but is primarily here as a precusor
to the next patch. I've only done this for the two functions
which use the dev pointer repeatedly.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Andreas Brauchli <andreas.brauchli@sensirion.com>
Link: https://lore.kernel.org/r/20200910173242.621168-27-jic23@kernel.org
drivers/iio/chemical/sgp30.c