X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Finput%2Fsensors%2Fsensor-dev.c;h=db8438acb6372b5ec1887352800211cb64ae58ee;hb=fe1ae7cd74f185f9727b9f29ddd715963457b8c8;hp=ea2b4172c57bf92c7329ba74e07f4d05b003a3d2;hpb=b181f0746982a3a36bf27d07bab72ecf2844c8c9;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/input/sensors/sensor-dev.c b/drivers/input/sensors/sensor-dev.c index ea2b4172c57b..db8438acb637 100755 --- a/drivers/input/sensors/sensor-dev.c +++ b/drivers/input/sensors/sensor-dev.c @@ -43,6 +43,9 @@ #define DBG(x...) #endif +#define SENSOR_VERSION_AND_TIME "sensor-dev.c v1.0 2013-2-18" + + struct sensor_private_data *g_sensor[SENSOR_NUM_TYPES]; static struct sensor_operate *sensor_ops[SENSOR_NUM_ID]; static struct class *g_sensor_class[SENSOR_NUM_TYPES]; @@ -1416,6 +1419,7 @@ static const struct i2c_device_id sensor_id[] = { {"ls_stk3171", LIGHT_ID_STK3171}, {"ls_isl29023", LIGHT_ID_ISL29023}, {"ls_ap321xx", LIGHT_ID_AP321XX}, + {"ls_photoresistor", LIGHT_ID_PHOTORESISTOR}, /*proximity sensor*/ {"psensor", PROXIMITY_ID_ALL}, {"proximity_al3006", PROXIMITY_ID_AL3006}, @@ -1444,6 +1448,8 @@ static int __init sensor_init(void) pr_info("%s: Probe name %s\n", __func__, sensor_driver.driver.name); if (res) pr_err("%s failed\n", __func__); + + printk("%s\n", SENSOR_VERSION_AND_TIME); return res; }