input: sensors: make local struct sensor_operate ops static

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifa014ea6e830d4a312a173de473dda3f05c66ad3
This commit is contained in:
Tao Huang
2022-02-08 18:14:33 +08:00
parent 8f1f6dcb73
commit a04ad7f646
47 changed files with 47 additions and 47 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -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*/

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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

View File

@@ -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,

View File

@@ -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