tsl2771 prox/als: Update suspend/resume to dev_pm_ops

Update the power management suspend/resume to use
the dev_pm_ops instead of legacy suspend/resume callbacks

Change-Id: Id6d89fdd72049ae1bf21053cab544253ae23437b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
TSL2771 prox/als: Remove unneeded logging statement

The logging statement "not powering the device down" does not make
sense and always is shown if the device was not enabled.

Change-Id: Ic8c2eed25b2fd99791a40f66a5a0c3a0ef72113b
Signed-off-by: Dan Murphy <dmurphy@ti.com>
tsl2771 prox/als: Change suspend/resume and enable/disable logic

Logic in suspend/resume path is not correct.
Even if proximity sensor is disabled -
resume logic will enable it. This patch fixed this.

Also, patch resolve issue with disabling ALS sensor.
TSL2771's datasheet says that AEN bit should be enable,
even if only proximity sensor is used. This patch
keep AEN-bit if sensors are enabled and clear it
during disabling last of them.

Change-Id: Ib134429d36af2c640ff0b52235d91f7f0cf754ef
Signed-off-by: Sergii Postulga <x0153364@ti.com>
[Tablet] Added missing APIs for TSL2771 Proximity driver

Added __set_bit and input_set_abs_params APIs to tsl2771.c
This change stopped kernel panic from occurring
Also allows the driver to function properly

Change-Id: Ie5b9083880a90cb73e606bbbb9e0b4b84a741f88
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>