mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user