From a04ad7f64626dea1215ea3e1876450d041d01047 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 8 Feb 2022 18:14:33 +0800 Subject: [PATCH] input: sensors: make local struct sensor_operate ops static Signed-off-by: Tao Huang Change-Id: Ifa014ea6e830d4a312a173de473dda3f05c66ad3 --- drivers/input/sensors/accel/bma2xx.c | 2 +- drivers/input/sensors/accel/da223_cust.c | 2 +- drivers/input/sensors/accel/dmard10.c | 2 +- drivers/input/sensors/accel/icm2060x_acc.c | 2 +- drivers/input/sensors/accel/kxtik.c | 2 +- drivers/input/sensors/accel/kxtj9.c | 2 +- drivers/input/sensors/accel/lis3dh.c | 2 +- drivers/input/sensors/accel/lsm303d.c | 2 +- drivers/input/sensors/accel/lsm330_acc.c | 2 +- drivers/input/sensors/accel/mma7660.c | 2 +- drivers/input/sensors/accel/mma8452.c | 2 +- drivers/input/sensors/accel/mpu6500_acc.c | 2 +- drivers/input/sensors/accel/mpu6880_acc.c | 2 +- drivers/input/sensors/accel/mxc622x.c | 2 +- drivers/input/sensors/accel/sc7a30.c | 2 +- drivers/input/sensors/accel/stk8baxx.c | 2 +- drivers/input/sensors/angle/angle_kxtik.c | 2 +- drivers/input/sensors/angle/angle_lis3dh.c | 2 +- drivers/input/sensors/compass/ak09911.c | 2 +- drivers/input/sensors/compass/ak09918.c | 2 +- drivers/input/sensors/compass/ak8963.c | 2 +- drivers/input/sensors/compass/ak8975.c | 2 +- drivers/input/sensors/gyro/ewtsa.c | 2 +- drivers/input/sensors/gyro/icm2060x_gyro.c | 2 +- drivers/input/sensors/gyro/l3g4200d.c | 2 +- drivers/input/sensors/gyro/lsm330_gyro.c | 2 +- drivers/input/sensors/gyro/mpu6500_gyro.c | 2 +- drivers/input/sensors/gyro/mpu6880_gyro.c | 2 +- drivers/input/sensors/hall/och165t_hall.c | 2 +- drivers/input/sensors/lsensor/cm3217.c | 2 +- drivers/input/sensors/lsensor/cm3218.c | 2 +- drivers/input/sensors/lsensor/cm3232.c | 2 +- drivers/input/sensors/lsensor/isl29023.c | 2 +- drivers/input/sensors/lsensor/ls_al3006.c | 2 +- drivers/input/sensors/lsensor/ls_ap321xx.c | 2 +- drivers/input/sensors/lsensor/ls_em3071x.c | 2 +- drivers/input/sensors/lsensor/ls_stk3171.c | 2 +- drivers/input/sensors/lsensor/ls_stk3332.c | 2 +- drivers/input/sensors/lsensor/ls_stk3410.c | 2 +- drivers/input/sensors/lsensor/ls_us5152.c | 2 +- drivers/input/sensors/pressure/pr_ms5607.c | 2 +- drivers/input/sensors/psensor/ps_al3006.c | 2 +- drivers/input/sensors/psensor/ps_ap321xx.c | 2 +- drivers/input/sensors/psensor/ps_em3071x.c | 2 +- drivers/input/sensors/psensor/ps_stk3171.c | 2 +- drivers/input/sensors/psensor/ps_stk3410.c | 2 +- drivers/input/sensors/temperature/tmp_ms5607.c | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) diff --git a/drivers/input/sensors/accel/bma2xx.c b/drivers/input/sensors/accel/bma2xx.c index 19f578a77295..37da1617c696 100644 --- a/drivers/input/sensors/accel/bma2xx.c +++ b/drivers/input/sensors/accel/bma2xx.c @@ -2210,7 +2210,7 @@ static int sensor_init(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_bma2x2_ops = { +static struct sensor_operate gsensor_bma2x2_ops = { .name = "bma2xx_acc", /*sensor type and it should be correct*/ .type = SENSOR_TYPE_ACCEL, diff --git a/drivers/input/sensors/accel/da223_cust.c b/drivers/input/sensors/accel/da223_cust.c index c00836d5b78d..7cbf68003ea2 100644 --- a/drivers/input/sensors/accel/da223_cust.c +++ b/drivers/input/sensors/accel/da223_cust.c @@ -838,7 +838,7 @@ static int sensor_resume(struct i2c_client *client) } /******************************************************************************/ -struct sensor_operate gsensor_ops = { +static struct sensor_operate gsensor_ops = { .name = MIR3DA_DRV_NAME, .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MIR3DA, diff --git a/drivers/input/sensors/accel/dmard10.c b/drivers/input/sensors/accel/dmard10.c index 8be258c316a2..9c0693e56fe9 100644 --- a/drivers/input/sensors/accel/dmard10.c +++ b/drivers/input/sensors/accel/dmard10.c @@ -398,7 +398,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate gsensor_dmard10_ops = { +static struct sensor_operate gsensor_dmard10_ops = { .name = "gs_dmard10", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_DMARD10, diff --git a/drivers/input/sensors/accel/icm2060x_acc.c b/drivers/input/sensors/accel/icm2060x_acc.c index 80a5c96e6207..81473e959a02 100644 --- a/drivers/input/sensors/accel/icm2060x_acc.c +++ b/drivers/input/sensors/accel/icm2060x_acc.c @@ -205,7 +205,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_icm2060x_ops = { +static struct sensor_operate gsensor_icm2060x_ops = { .name = "icm2060x_acc", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_ICM2060X, diff --git a/drivers/input/sensors/accel/kxtik.c b/drivers/input/sensors/accel/kxtik.c index 734b471f5d3a..7cebc580878f 100644 --- a/drivers/input/sensors/accel/kxtik.c +++ b/drivers/input/sensors/accel/kxtik.c @@ -304,7 +304,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_kxtik_ops = { +static struct sensor_operate gsensor_kxtik_ops = { .name = "kxtik", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_KXTIK, diff --git a/drivers/input/sensors/accel/kxtj9.c b/drivers/input/sensors/accel/kxtj9.c index 6fc6a8c5f119..4726c5f73b54 100644 --- a/drivers/input/sensors/accel/kxtj9.c +++ b/drivers/input/sensors/accel/kxtj9.c @@ -277,7 +277,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_kxtj9_ops = { +static struct sensor_operate gsensor_kxtj9_ops = { .name = "kxtj9", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_KXTJ9, diff --git a/drivers/input/sensors/accel/lis3dh.c b/drivers/input/sensors/accel/lis3dh.c index 55f0fe526899..1d77aae57ce7 100644 --- a/drivers/input/sensors/accel/lis3dh.c +++ b/drivers/input/sensors/accel/lis3dh.c @@ -248,7 +248,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_lis3dh_ops = { +static struct sensor_operate gsensor_lis3dh_ops = { .name = "lis3dh", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_LIS3DH, diff --git a/drivers/input/sensors/accel/lsm303d.c b/drivers/input/sensors/accel/lsm303d.c index ff238278f10c..9e3c45b270d7 100644 --- a/drivers/input/sensors/accel/lsm303d.c +++ b/drivers/input/sensors/accel/lsm303d.c @@ -306,7 +306,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_lsm303d_ops = { +static struct sensor_operate gsensor_lsm303d_ops = { .name = "lsm303d", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_LSM303D, diff --git a/drivers/input/sensors/accel/lsm330_acc.c b/drivers/input/sensors/accel/lsm330_acc.c index ed93bb0147ff..55a6efeaf214 100644 --- a/drivers/input/sensors/accel/lsm330_acc.c +++ b/drivers/input/sensors/accel/lsm330_acc.c @@ -224,7 +224,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_lsm330_ops = { +static struct sensor_operate gsensor_lsm330_ops = { .name = "lsm330_acc", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_LSM330, diff --git a/drivers/input/sensors/accel/mma7660.c b/drivers/input/sensors/accel/mma7660.c index 33e2dec7bb22..3eddc8cad426 100644 --- a/drivers/input/sensors/accel/mma7660.c +++ b/drivers/input/sensors/accel/mma7660.c @@ -203,7 +203,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_mma7660_ops = { +static struct sensor_operate gsensor_mma7660_ops = { .name = "mma7660", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MMA7660, diff --git a/drivers/input/sensors/accel/mma8452.c b/drivers/input/sensors/accel/mma8452.c index 9c8bb48f0848..581f502dd059 100644 --- a/drivers/input/sensors/accel/mma8452.c +++ b/drivers/input/sensors/accel/mma8452.c @@ -369,7 +369,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate gsensor_mma8452_ops = { +static struct sensor_operate gsensor_mma8452_ops = { .name = "mma8452", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MMA845X, diff --git a/drivers/input/sensors/accel/mpu6500_acc.c b/drivers/input/sensors/accel/mpu6500_acc.c index 6fc2058e0f9f..be0cf709398d 100644 --- a/drivers/input/sensors/accel/mpu6500_acc.c +++ b/drivers/input/sensors/accel/mpu6500_acc.c @@ -245,7 +245,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_mpu6500_ops = { +static struct sensor_operate gsensor_mpu6500_ops = { .name = "mpu6500_acc", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MPU6500, diff --git a/drivers/input/sensors/accel/mpu6880_acc.c b/drivers/input/sensors/accel/mpu6880_acc.c index 4cf8c89506a5..cad8e259b45a 100644 --- a/drivers/input/sensors/accel/mpu6880_acc.c +++ b/drivers/input/sensors/accel/mpu6880_acc.c @@ -241,7 +241,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_mpu6880_ops = { +static struct sensor_operate gsensor_mpu6880_ops = { .name = "mpu6880_acc", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MPU6880, diff --git a/drivers/input/sensors/accel/mxc622x.c b/drivers/input/sensors/accel/mxc622x.c index 614242584e0a..586c07609b26 100644 --- a/drivers/input/sensors/accel/mxc622x.c +++ b/drivers/input/sensors/accel/mxc622x.c @@ -229,7 +229,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate gsensor_mxc6225_ops = { +static struct sensor_operate gsensor_mxc6225_ops = { .name = "mxc6225", .type = SENSOR_TYPE_ACCEL, .id_i2c = ACCEL_ID_MXC6225, diff --git a/drivers/input/sensors/accel/sc7a30.c b/drivers/input/sensors/accel/sc7a30.c index 576c9188029b..b4f559bf60e3 100644 --- a/drivers/input/sensors/accel/sc7a30.c +++ b/drivers/input/sensors/accel/sc7a30.c @@ -1160,7 +1160,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gsensor_sc7a30_ops = { +static struct sensor_operate gsensor_sc7a30_ops = { .name = "gs_sc7a30", .type = SENSOR_TYPE_ACCEL, //sensor type and it should be correct .id_i2c = ACCEL_ID_SC7A30, //i2c id number diff --git a/drivers/input/sensors/accel/stk8baxx.c b/drivers/input/sensors/accel/stk8baxx.c index 9ca93971d914..c40fe6f71b6d 100644 --- a/drivers/input/sensors/accel/stk8baxx.c +++ b/drivers/input/sensors/accel/stk8baxx.c @@ -901,7 +901,7 @@ static int sensor_init(struct i2c_client *client) return 0; } -struct sensor_operate gsensor_stk8baxx_ops = { +static struct sensor_operate gsensor_stk8baxx_ops = { .name = "gs_stk8baxx", .type = SENSOR_TYPE_ACCEL, /*sensor type and it should be correct*/ .id_i2c = ACCEL_ID_STK8BAXX, /*i2c id number*/ diff --git a/drivers/input/sensors/angle/angle_kxtik.c b/drivers/input/sensors/angle/angle_kxtik.c index 7373c6bd4068..e1045061195e 100755 --- a/drivers/input/sensors/angle/angle_kxtik.c +++ b/drivers/input/sensors/angle/angle_kxtik.c @@ -343,7 +343,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate angle_kxtik_ops = { +static struct sensor_operate angle_kxtik_ops = { .name = "angle_kxtik", .type = SENSOR_TYPE_ANGLE, //sensor type and it should be correct .id_i2c = ANGLE_ID_KXTIK, //i2c id number diff --git a/drivers/input/sensors/angle/angle_lis3dh.c b/drivers/input/sensors/angle/angle_lis3dh.c index ae247ffa2312..5db89b6ce6c9 100755 --- a/drivers/input/sensors/angle/angle_lis3dh.c +++ b/drivers/input/sensors/angle/angle_lis3dh.c @@ -285,7 +285,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate angle_lis3dh_ops = { +static struct sensor_operate angle_lis3dh_ops = { .name = "angle_lis3dh", .type = SENSOR_TYPE_ANGLE, //sensor type and it should be correct .id_i2c = ANGLE_ID_LIS3DH, //i2c id number diff --git a/drivers/input/sensors/compass/ak09911.c b/drivers/input/sensors/compass/ak09911.c index b1e334d0b5a8..31a36c1bd985 100644 --- a/drivers/input/sensors/compass/ak09911.c +++ b/drivers/input/sensors/compass/ak09911.c @@ -611,7 +611,7 @@ static struct miscdevice compass_dev_device = { .fops = &compass_dev_fops, }; -struct sensor_operate compass_akm09911_ops = { +static struct sensor_operate compass_akm09911_ops = { .name = "akm09911", .type = SENSOR_TYPE_COMPASS, .id_i2c = COMPASS_ID_AK09911, diff --git a/drivers/input/sensors/compass/ak09918.c b/drivers/input/sensors/compass/ak09918.c index 1c3056a824e5..d635b9541bf6 100644 --- a/drivers/input/sensors/compass/ak09918.c +++ b/drivers/input/sensors/compass/ak09918.c @@ -636,7 +636,7 @@ static struct miscdevice compass_dev_device = { .fops = &compass_dev_fops, }; -struct sensor_operate compass_akm09918_ops = { +static struct sensor_operate compass_akm09918_ops = { .name = "akm09918", .type = SENSOR_TYPE_COMPASS, .id_i2c = COMPASS_ID_AK09918, diff --git a/drivers/input/sensors/compass/ak8963.c b/drivers/input/sensors/compass/ak8963.c index 10e91eb2d0be..0ae4f9078bc3 100644 --- a/drivers/input/sensors/compass/ak8963.c +++ b/drivers/input/sensors/compass/ak8963.c @@ -658,7 +658,7 @@ static struct miscdevice compass_dev_device = { .fops = &compass_dev_fops, }; -struct sensor_operate compass_akm8963_ops = { +static struct sensor_operate compass_akm8963_ops = { .name = "akm8963", .type = SENSOR_TYPE_COMPASS, .id_i2c = COMPASS_ID_AK8963, diff --git a/drivers/input/sensors/compass/ak8975.c b/drivers/input/sensors/compass/ak8975.c index c48a808ed18d..5a1fef9bc4eb 100644 --- a/drivers/input/sensors/compass/ak8975.c +++ b/drivers/input/sensors/compass/ak8975.c @@ -592,7 +592,7 @@ static struct miscdevice compass_dev_device = .fops = &compass_dev_fops, }; -struct sensor_operate compass_akm8975_ops = { +static struct sensor_operate compass_akm8975_ops = { .name = "akm8975", .type = SENSOR_TYPE_COMPASS, //it is important .id_i2c = COMPASS_ID_AK8975, diff --git a/drivers/input/sensors/gyro/ewtsa.c b/drivers/input/sensors/gyro/ewtsa.c index acbc0ac4b143..1a9352428efc 100644 --- a/drivers/input/sensors/gyro/ewtsa.c +++ b/drivers/input/sensors/gyro/ewtsa.c @@ -406,7 +406,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate gyro_ewtsa_ops = { +static struct sensor_operate gyro_ewtsa_ops = { .name = "ewtsa", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_EWTSA, diff --git a/drivers/input/sensors/gyro/icm2060x_gyro.c b/drivers/input/sensors/gyro/icm2060x_gyro.c index 3d4624b5dbd6..ae4702458bec 100644 --- a/drivers/input/sensors/gyro/icm2060x_gyro.c +++ b/drivers/input/sensors/gyro/icm2060x_gyro.c @@ -149,7 +149,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gyro_icm2060x_ops = { +static struct sensor_operate gyro_icm2060x_ops = { .name = "icm2060x_gyro", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_ICM2060X, diff --git a/drivers/input/sensors/gyro/l3g4200d.c b/drivers/input/sensors/gyro/l3g4200d.c index b1e3af6589cb..87aa6a96201d 100644 --- a/drivers/input/sensors/gyro/l3g4200d.c +++ b/drivers/input/sensors/gyro/l3g4200d.c @@ -202,7 +202,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate gyro_l3g4200d_ops = { +static struct sensor_operate gyro_l3g4200d_ops = { .name = "l3g4200d", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_L3G4200D, diff --git a/drivers/input/sensors/gyro/lsm330_gyro.c b/drivers/input/sensors/gyro/lsm330_gyro.c index a488d4826acf..8bed5b0825bd 100644 --- a/drivers/input/sensors/gyro/lsm330_gyro.c +++ b/drivers/input/sensors/gyro/lsm330_gyro.c @@ -208,7 +208,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gyro_lsm330_ops = { +static struct sensor_operate gyro_lsm330_ops = { .name = "lsm330_gyro", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_LSM330, diff --git a/drivers/input/sensors/gyro/mpu6500_gyro.c b/drivers/input/sensors/gyro/mpu6500_gyro.c index 6b4f81154b7f..093ce1f5b788 100644 --- a/drivers/input/sensors/gyro/mpu6500_gyro.c +++ b/drivers/input/sensors/gyro/mpu6500_gyro.c @@ -149,7 +149,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gyro_mpu6500_ops = { +static struct sensor_operate gyro_mpu6500_ops = { .name = "mpu6500_gyro", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_MPU6500, diff --git a/drivers/input/sensors/gyro/mpu6880_gyro.c b/drivers/input/sensors/gyro/mpu6880_gyro.c index 324e66ecfab6..7a734d067544 100644 --- a/drivers/input/sensors/gyro/mpu6880_gyro.c +++ b/drivers/input/sensors/gyro/mpu6880_gyro.c @@ -149,7 +149,7 @@ static int sensor_report_value(struct i2c_client *client) return ret; } -struct sensor_operate gyro_mpu6880_ops = { +static struct sensor_operate gyro_mpu6880_ops = { .name = "mpu6880_gyro", .type = SENSOR_TYPE_GYROSCOPE, .id_i2c = GYRO_ID_MPU6880, diff --git a/drivers/input/sensors/hall/och165t_hall.c b/drivers/input/sensors/hall/och165t_hall.c index 71711a95028d..d697207f83a8 100644 --- a/drivers/input/sensors/hall/och165t_hall.c +++ b/drivers/input/sensors/hall/och165t_hall.c @@ -103,7 +103,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate hall_och165t_ops = { +static struct sensor_operate hall_och165t_ops = { .name = "och165t", .type = SENSOR_TYPE_HALL, //sensor type and it should be correct .id_i2c = HALL_ID_OCH165T, //i2c id number diff --git a/drivers/input/sensors/lsensor/cm3217.c b/drivers/input/sensors/lsensor/cm3217.c index 182fee423993..96f5a092f5b3 100755 --- a/drivers/input/sensors/lsensor/cm3217.c +++ b/drivers/input/sensors/lsensor/cm3217.c @@ -182,7 +182,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate light_cm3217_ops = { +static struct sensor_operate light_cm3217_ops = { .name = "cm3217", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_CM3217, //i2c id number diff --git a/drivers/input/sensors/lsensor/cm3218.c b/drivers/input/sensors/lsensor/cm3218.c index eed39578b005..f785695c6847 100644 --- a/drivers/input/sensors/lsensor/cm3218.c +++ b/drivers/input/sensors/lsensor/cm3218.c @@ -350,7 +350,7 @@ static int sensor_report_value(struct i2c_client *client) return 0; } -struct sensor_operate light_cm3218_ops = { +static struct sensor_operate light_cm3218_ops = { .name = "cm3218", /* sensor type and it should be correct */ .type = SENSOR_TYPE_LIGHT, diff --git a/drivers/input/sensors/lsensor/cm3232.c b/drivers/input/sensors/lsensor/cm3232.c index 6322e57bb1a9..41e49a2b53bd 100755 --- a/drivers/input/sensors/lsensor/cm3232.c +++ b/drivers/input/sensors/lsensor/cm3232.c @@ -189,7 +189,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate light_cm3232_ops = { +static struct sensor_operate light_cm3232_ops = { .name = "cm3232", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_CM3232, //i2c id number diff --git a/drivers/input/sensors/lsensor/isl29023.c b/drivers/input/sensors/lsensor/isl29023.c index 200c4b2959c7..f441abf2f174 100755 --- a/drivers/input/sensors/lsensor/isl29023.c +++ b/drivers/input/sensors/lsensor/isl29023.c @@ -217,7 +217,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_isl29023_ops = { +static struct sensor_operate light_isl29023_ops = { .name = "ls_isl29023", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_ISL29023, //i2c id number diff --git a/drivers/input/sensors/lsensor/ls_al3006.c b/drivers/input/sensors/lsensor/ls_al3006.c index 8334d0faceaf..16e61c777a11 100755 --- a/drivers/input/sensors/lsensor/ls_al3006.c +++ b/drivers/input/sensors/lsensor/ls_al3006.c @@ -244,7 +244,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_al3006_ops = { +static struct sensor_operate light_al3006_ops = { .name = "ls_al3006", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_AL3006, //i2c id number diff --git a/drivers/input/sensors/lsensor/ls_ap321xx.c b/drivers/input/sensors/lsensor/ls_ap321xx.c index 8181cec587a0..dec98e233286 100644 --- a/drivers/input/sensors/lsensor/ls_ap321xx.c +++ b/drivers/input/sensors/lsensor/ls_ap321xx.c @@ -356,7 +356,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_ap321xx_ops = { +static struct sensor_operate light_ap321xx_ops = { .name = "ls_ap321xx", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_AP321XX, //i2c id number diff --git a/drivers/input/sensors/lsensor/ls_em3071x.c b/drivers/input/sensors/lsensor/ls_em3071x.c index fc7500963ab5..9593a888cc02 100644 --- a/drivers/input/sensors/lsensor/ls_em3071x.c +++ b/drivers/input/sensors/lsensor/ls_em3071x.c @@ -227,7 +227,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_em3071x_ops = { +static struct sensor_operate light_em3071x_ops = { .name = "ls_em3071x", .type = SENSOR_TYPE_LIGHT, .id_i2c = LIGHT_ID_EM3071X, diff --git a/drivers/input/sensors/lsensor/ls_stk3171.c b/drivers/input/sensors/lsensor/ls_stk3171.c index a8bc7d0e9af3..fbd50a8e3c3f 100755 --- a/drivers/input/sensors/lsensor/ls_stk3171.c +++ b/drivers/input/sensors/lsensor/ls_stk3171.c @@ -263,7 +263,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_stk3171_ops = { +static struct sensor_operate light_stk3171_ops = { .name = "ls_stk3171", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_STK3171, //i2c id number diff --git a/drivers/input/sensors/lsensor/ls_stk3332.c b/drivers/input/sensors/lsensor/ls_stk3332.c index dd006e108bba..857fb337c72e 100644 --- a/drivers/input/sensors/lsensor/ls_stk3332.c +++ b/drivers/input/sensors/lsensor/ls_stk3332.c @@ -317,7 +317,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_stk3332_ops = { +static struct sensor_operate light_stk3332_ops = { .name = "ls_stk3332", .type = SENSOR_TYPE_LIGHT, .id_i2c = LIGHT_ID_STK3332, diff --git a/drivers/input/sensors/lsensor/ls_stk3410.c b/drivers/input/sensors/lsensor/ls_stk3410.c index 25722040fc31..3042b11f079a 100644 --- a/drivers/input/sensors/lsensor/ls_stk3410.c +++ b/drivers/input/sensors/lsensor/ls_stk3410.c @@ -319,7 +319,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate light_stk3410_ops = { +static struct sensor_operate light_stk3410_ops = { .name = "ls_stk3410", .type = SENSOR_TYPE_LIGHT, .id_i2c = LIGHT_ID_STK3410, diff --git a/drivers/input/sensors/lsensor/ls_us5152.c b/drivers/input/sensors/lsensor/ls_us5152.c index 4f5b470bc735..d1a0377cb470 100644 --- a/drivers/input/sensors/lsensor/ls_us5152.c +++ b/drivers/input/sensors/lsensor/ls_us5152.c @@ -383,7 +383,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate light_us5152_ops = { +static struct sensor_operate light_us5152_ops = { .name = "ls_us5152", .type = SENSOR_TYPE_LIGHT, //sensor type and it should be correct .id_i2c = LIGHT_ID_US5152, //i2c id number diff --git a/drivers/input/sensors/pressure/pr_ms5607.c b/drivers/input/sensors/pressure/pr_ms5607.c index 9833ad5d9a9e..1a10c401ef12 100755 --- a/drivers/input/sensors/pressure/pr_ms5607.c +++ b/drivers/input/sensors/pressure/pr_ms5607.c @@ -242,7 +242,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate pressure_ms5607_ops = { +static struct sensor_operate pressure_ms5607_ops = { .name = "pr_ms5607", .type = SENSOR_TYPE_PRESSURE, //sensor type and it should be correct .id_i2c = PRESSURE_ID_MS5607, //i2c id number diff --git a/drivers/input/sensors/psensor/ps_al3006.c b/drivers/input/sensors/psensor/ps_al3006.c index 3242af2be23f..dfd8578a87ce 100755 --- a/drivers/input/sensors/psensor/ps_al3006.c +++ b/drivers/input/sensors/psensor/ps_al3006.c @@ -206,7 +206,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate proximity_al3006_ops = { +static struct sensor_operate proximity_al3006_ops = { .name = "ps_al3006", .type = SENSOR_TYPE_PROXIMITY,//sensor type and it should be correct .id_i2c = PROXIMITY_ID_AL3006, //i2c id number diff --git a/drivers/input/sensors/psensor/ps_ap321xx.c b/drivers/input/sensors/psensor/ps_ap321xx.c index d3711461af20..51bcfd3f87a6 100644 --- a/drivers/input/sensors/psensor/ps_ap321xx.c +++ b/drivers/input/sensors/psensor/ps_ap321xx.c @@ -269,7 +269,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate proximity_ap321xx_ops = { +static struct sensor_operate proximity_ap321xx_ops = { .name = "ps_ap321xx", .type = SENSOR_TYPE_PROXIMITY, //sensor type and it should be correct .id_i2c = PROXIMITY_ID_AP321XX, //i2c id number diff --git a/drivers/input/sensors/psensor/ps_em3071x.c b/drivers/input/sensors/psensor/ps_em3071x.c index 5f387348881b..539c5af30c6c 100644 --- a/drivers/input/sensors/psensor/ps_em3071x.c +++ b/drivers/input/sensors/psensor/ps_em3071x.c @@ -225,7 +225,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate psensor_em3071x_ops = { +static struct sensor_operate psensor_em3071x_ops = { .name = "ps_em3071x", .type = SENSOR_TYPE_PROXIMITY, .id_i2c = PROXIMITY_ID_EM3071X, diff --git a/drivers/input/sensors/psensor/ps_stk3171.c b/drivers/input/sensors/psensor/ps_stk3171.c index 1753bbe65c19..049b29f62eac 100755 --- a/drivers/input/sensors/psensor/ps_stk3171.c +++ b/drivers/input/sensors/psensor/ps_stk3171.c @@ -213,7 +213,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate proximity_stk3171_ops = { +static struct sensor_operate proximity_stk3171_ops = { .name = "ps_stk3171", .type = SENSOR_TYPE_PROXIMITY, //sensor type and it should be correct .id_i2c = PROXIMITY_ID_STK3171, //i2c id number diff --git a/drivers/input/sensors/psensor/ps_stk3410.c b/drivers/input/sensors/psensor/ps_stk3410.c index 90f9a2313d1f..387e282e99b9 100644 --- a/drivers/input/sensors/psensor/ps_stk3410.c +++ b/drivers/input/sensors/psensor/ps_stk3410.c @@ -322,7 +322,7 @@ static int sensor_report_value(struct i2c_client *client) return result; } -struct sensor_operate psensor_stk3410_ops = { +static struct sensor_operate psensor_stk3410_ops = { .name = "ps_stk3410", .type = SENSOR_TYPE_PROXIMITY, .id_i2c = PROXIMITY_ID_STK3410, diff --git a/drivers/input/sensors/temperature/tmp_ms5607.c b/drivers/input/sensors/temperature/tmp_ms5607.c index 1e5183ccc11d..63cc4add671a 100755 --- a/drivers/input/sensors/temperature/tmp_ms5607.c +++ b/drivers/input/sensors/temperature/tmp_ms5607.c @@ -260,7 +260,7 @@ static int sensor_report_value(struct i2c_client *client) } -struct sensor_operate temperature_ms5607_ops = { +static struct sensor_operate temperature_ms5607_ops = { .name = "tmp_ms5607", .type = SENSOR_TYPE_TEMPERATURE, //sensor type and it should be correct .id_i2c = TEMPERATURE_ID_MS5607, //i2c id number