]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2x7x: use macro to populate tsl2X7X_device_info
authorBrian Masney <masneyb@onstation.org>
Fri, 11 May 2018 00:12:18 +0000 (20:12 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 May 2018 11:17:49 +0000 (12:17 +0100)
commit59db353ac13e0bf0385c5658148c2bf484cee390
treedee3afc40efaac8b29ba1fe352a659330bc0e17a
parent1c9636eaf4cca0b1733ea1b30fb98e08e1c9233c
staging: iio: tsl2x7x: use macro to populate tsl2X7X_device_info

This patch creates a macro that populates the tsl2X7X_device_info
structure to reduce duplicated code in the driver.

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