]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: iio: tsl2x7x: rename prox_config to als_prox_config
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:53 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commite1f3592634892c24eb0545d4708e2151f21f26a0
treeb7f4d2605ab56b536a56389814ce979af7a554ca
parentffb036a0831beff5753cd0e16802742248bf9719
staging: iio: tsl2x7x: rename prox_config to als_prox_config

The configuration register on the device is represented with the
prox_config member on the tsl2x7x_settings structure. According to the
TSL2772 data sheet, this register can hold: 1) the proximity drive
level, 2) ALS/Proximity long wait, and 3) the ALS gain level. This
patch renames prox_config to als_prox_config since ALS settings can
be stored here as well.

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