]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitbfdf7f1024e535eb66250d9ffea30e599e1e5c5a
treedee3afc40efaac8b29ba1fe352a659330bc0e17a
parentcc566e90cba70966b5c84ac373110d499b8be4ac
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