staging: iio: tsl2x7x: simplify device id verification
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:47 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commitdbc6cd1b0b31d714d90b2637b6596e867bb1439a
tree5453efaf788cc7eedc5f0985895b7efc9c1dfd21
parent8d0cc0905814fffeeb765b33ded34293586fef38
staging: iio: tsl2x7x: simplify device id verification

This patch renames tsl2x7x_device_id() to tsl2x7x_device_id_verif(),
removes the unnecessary pointer on the id parameter, and only calls
the verification function once.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c