mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
sar-sensor: update the driver for a96t346
Update the driver for sar-sensor: - change the event report by virtual-sensor for capsensor Change-Id: I8c0b1b7e5fe47f01e1c4a64cadc3821fc99772ba Reviewed-on: https://gerrit.mot.com/1401810 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqiu Huang <huangjq9@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c8a9793da4
commit
5aeff3568a
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
|||
* published by the Free Software Foundation.
|
||||
*/
|
||||
#define DRIVER_NAME "abov_sar"
|
||||
//#define USE_SENSORS_CLASS
|
||||
#define USE_SENSORS_CLASS
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
#include <linux/of_gpio.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/device.h>
|
||||
//#include <linux/sensors.h>
|
||||
#include <linux/sensors.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/notifier.h>
|
||||
|
|
@ -1552,7 +1552,7 @@ static int abov_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
|||
LOG_DBG("create bottom_lmb cap sensor_class file failed (%d)\n", ret);
|
||||
sensors_capsensor_bottom_hb_cdev.sensors_enable = capsensor_set_enable;
|
||||
sensors_capsensor_bottom_hb_cdev.sensors_poll_delay = NULL;
|
||||
ret = sensors_classdev_register(&input_bottom_lmb->dev, &sensors_capsensor_bottom_hb_cdev);
|
||||
ret = sensors_classdev_register(&input_bottom_hb->dev, &sensors_capsensor_bottom_hb_cdev);
|
||||
if (ret < 0)
|
||||
LOG_DBG("create bottom_hb cap sensor_class file failed (%d)\n", ret);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue