mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
iio: Initialize i2c_device_id arrays using member names
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. The mentioned robustness is relevant for a planned change to struct i2c_device_id that replaces .driver_data by an anonymous union. This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Siratul Islam <email@sirat.me> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
c4657858d4
commit
f68afce8e8
|
|
@ -43,8 +43,8 @@ static const struct adxl345_chip_info adxl375_i2c_info = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id adxl345_i2c_id[] = {
|
||||
{ "adxl345", (kernel_ulong_t)&adxl345_i2c_info },
|
||||
{ "adxl375", (kernel_ulong_t)&adxl375_i2c_info },
|
||||
{ .name = "adxl345", .driver_data = (kernel_ulong_t)&adxl345_i2c_info },
|
||||
{ .name = "adxl375", .driver_data = (kernel_ulong_t)&adxl375_i2c_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adxl345_i2c_id);
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ static int adxl355_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adxl355_i2c_id[] = {
|
||||
{ "adxl355", (kernel_ulong_t)&adxl35x_chip_info[ADXL355] },
|
||||
{ "adxl359", (kernel_ulong_t)&adxl35x_chip_info[ADXL359] },
|
||||
{ .name = "adxl355", .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL355] },
|
||||
{ .name = "adxl359", .driver_data = (kernel_ulong_t)&adxl35x_chip_info[ADXL359] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adxl355_i2c_id);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ static int adxl367_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adxl367_i2c_id[] = {
|
||||
{ "adxl367" },
|
||||
{ .name = "adxl367" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adxl367_i2c_id);
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ static int adxl372_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adxl372_i2c_id[] = {
|
||||
{ "adxl371", (kernel_ulong_t)&adxl371_chip_info },
|
||||
{ "adxl372", (kernel_ulong_t)&adxl372_chip_info },
|
||||
{ .name = "adxl371", .driver_data = (kernel_ulong_t)&adxl371_chip_info },
|
||||
{ .name = "adxl372", .driver_data = (kernel_ulong_t)&adxl372_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adxl372_i2c_id);
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ static int adxl380_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adxl380_i2c_id[] = {
|
||||
{ "adxl318", (kernel_ulong_t)&adxl318_chip_info },
|
||||
{ "adxl319", (kernel_ulong_t)&adxl319_chip_info },
|
||||
{ "adxl380", (kernel_ulong_t)&adxl380_chip_info },
|
||||
{ "adxl382", (kernel_ulong_t)&adxl382_chip_info },
|
||||
{ .name = "adxl318", .driver_data = (kernel_ulong_t)&adxl318_chip_info },
|
||||
{ .name = "adxl319", .driver_data = (kernel_ulong_t)&adxl319_chip_info },
|
||||
{ .name = "adxl380", .driver_data = (kernel_ulong_t)&adxl380_chip_info },
|
||||
{ .name = "adxl382", .driver_data = (kernel_ulong_t)&adxl382_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adxl380_i2c_id);
|
||||
|
|
|
|||
|
|
@ -1083,11 +1083,11 @@ static int bma180_resume(struct device *dev)
|
|||
static DEFINE_SIMPLE_DEV_PM_OPS(bma180_pm_ops, bma180_suspend, bma180_resume);
|
||||
|
||||
static const struct i2c_device_id bma180_ids[] = {
|
||||
{ "bma023", (kernel_ulong_t)&bma180_part_info[BMA023] },
|
||||
{ "bma150", (kernel_ulong_t)&bma180_part_info[BMA150] },
|
||||
{ "bma180", (kernel_ulong_t)&bma180_part_info[BMA180] },
|
||||
{ "bma250", (kernel_ulong_t)&bma180_part_info[BMA250] },
|
||||
{ "smb380", (kernel_ulong_t)&bma180_part_info[BMA150] },
|
||||
{ .name = "bma023", .driver_data = (kernel_ulong_t)&bma180_part_info[BMA023] },
|
||||
{ .name = "bma150", .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150] },
|
||||
{ .name = "bma180", .driver_data = (kernel_ulong_t)&bma180_part_info[BMA180] },
|
||||
{ .name = "bma250", .driver_data = (kernel_ulong_t)&bma180_part_info[BMA250] },
|
||||
{ .name = "smb380", .driver_data = (kernel_ulong_t)&bma180_part_info[BMA150] },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ static const struct of_device_id bma220_i2c_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, bma220_i2c_match);
|
||||
|
||||
static const struct i2c_device_id bma220_i2c_id[] = {
|
||||
{ "bma220" },
|
||||
{ .name = "bma220" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bma220_i2c_id);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ static int bma400_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id bma400_i2c_ids[] = {
|
||||
{ "bma400" },
|
||||
{ .name = "bma400" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bma400_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -45,9 +45,9 @@ static const struct of_device_id bmi088_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, bmi088_of_match);
|
||||
|
||||
static const struct i2c_device_id bmi088_accel_id[] = {
|
||||
{ "bmi085-accel", BOSCH_BMI085 },
|
||||
{ "bmi088-accel", BOSCH_BMI088 },
|
||||
{ "bmi090l-accel", BOSCH_BMI090L },
|
||||
{ .name = "bmi085-accel", .driver_data = BOSCH_BMI085 },
|
||||
{ .name = "bmi088-accel", .driver_data = BOSCH_BMI088 },
|
||||
{ .name = "bmi090l-accel", .driver_data = BOSCH_BMI090L },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bmi088_accel_id);
|
||||
|
|
|
|||
|
|
@ -162,9 +162,9 @@ static const struct acpi_device_id da280_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, da280_acpi_match);
|
||||
|
||||
static const struct i2c_device_id da280_i2c_id[] = {
|
||||
{ "da217", (kernel_ulong_t)&da217_match_data },
|
||||
{ "da226", (kernel_ulong_t)&da226_match_data },
|
||||
{ "da280", (kernel_ulong_t)&da280_match_data },
|
||||
{ .name = "da217", .driver_data = (kernel_ulong_t)&da217_match_data },
|
||||
{ .name = "da226", .driver_data = (kernel_ulong_t)&da226_match_data },
|
||||
{ .name = "da280", .driver_data = (kernel_ulong_t)&da280_match_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, da280_i2c_id);
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ static int da311_resume(struct device *dev)
|
|||
static DEFINE_SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume);
|
||||
|
||||
static const struct i2c_device_id da311_i2c_id[] = {
|
||||
{ "da311" },
|
||||
{ .name = "da311" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, da311_i2c_id);
|
||||
|
|
|
|||
|
|
@ -199,9 +199,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard06_pm_ops, dmard06_suspend,
|
|||
dmard06_resume);
|
||||
|
||||
static const struct i2c_device_id dmard06_id[] = {
|
||||
{ "dmard05" },
|
||||
{ "dmard06" },
|
||||
{ "dmard07" },
|
||||
{ .name = "dmard05" },
|
||||
{ .name = "dmard06" },
|
||||
{ .name = "dmard07" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, dmard06_id);
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ static int dmard09_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id dmard09_id[] = {
|
||||
{ "dmard09" },
|
||||
{ .name = "dmard09" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard10_pm_ops, dmard10_suspend,
|
|||
dmard10_resume);
|
||||
|
||||
static const struct i2c_device_id dmard10_i2c_id[] = {
|
||||
{ "dmard10" },
|
||||
{ .name = "dmard10" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, dmard10_i2c_id);
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ static int fxls8962af_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id fxls8962af_id[] = {
|
||||
{ "fxls8962af", fxls8962af },
|
||||
{ "fxls8964af", fxls8964af },
|
||||
{ "fxls8967af", fxls8967af },
|
||||
{ "fxls8974cf", fxls8974cf },
|
||||
{ .name = "fxls8962af", .driver_data = fxls8962af },
|
||||
{ .name = "fxls8964af", .driver_data = fxls8964af },
|
||||
{ .name = "fxls8967af", .driver_data = fxls8967af },
|
||||
{ .name = "fxls8974cf", .driver_data = fxls8974cf },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
|
||||
|
|
|
|||
|
|
@ -1630,11 +1630,11 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id kxcjk1013_id[] = {
|
||||
{ "kxcjk1013", (kernel_ulong_t)&kxcjk1013_info },
|
||||
{ "kxcj91008", (kernel_ulong_t)&kxcj91008_info },
|
||||
{ "kxtj21009", (kernel_ulong_t)&kxtj21009_info },
|
||||
{ "kxtf9", (kernel_ulong_t)&kxtf9_info },
|
||||
{ "kx023-1025", (kernel_ulong_t)&kx0231025_info },
|
||||
{ .name = "kxcjk1013", .driver_data = (kernel_ulong_t)&kxcjk1013_info },
|
||||
{ .name = "kxcj91008", .driver_data = (kernel_ulong_t)&kxcj91008_info },
|
||||
{ .name = "kxtj21009", .driver_data = (kernel_ulong_t)&kxtj21009_info },
|
||||
{ .name = "kxtf9", .driver_data = (kernel_ulong_t)&kxtf9_info },
|
||||
{ .name = "kx023-1025", .driver_data = (kernel_ulong_t)&kx0231025_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, kxcjk1013_id);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static const struct of_device_id kxsd9_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, kxsd9_of_match);
|
||||
|
||||
static const struct i2c_device_id kxsd9_i2c_id[] = {
|
||||
{ "kxsd9" },
|
||||
{ .name = "kxsd9" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, kxsd9_i2c_id);
|
||||
|
|
|
|||
|
|
@ -230,8 +230,8 @@ static int mc3230_resume(struct device *dev)
|
|||
static DEFINE_SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume);
|
||||
|
||||
static const struct i2c_device_id mc3230_i2c_id[] = {
|
||||
{ "mc3230", (kernel_ulong_t)&mc3230_chip_info },
|
||||
{ "mc3510c", (kernel_ulong_t)&mc3510c_chip_info },
|
||||
{ .name = "mc3230", .driver_data = (kernel_ulong_t)&mc3230_chip_info },
|
||||
{ .name = "mc3510c", .driver_data = (kernel_ulong_t)&mc3510c_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mc3230_i2c_id);
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ static void mma7455_i2c_remove(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id mma7455_i2c_ids[] = {
|
||||
{ "mma7455" },
|
||||
{ "mma7456" },
|
||||
{ .name = "mma7455" },
|
||||
{ .name = "mma7456" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mma7455_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mma7660_pm_ops, mma7660_suspend,
|
|||
mma7660_resume);
|
||||
|
||||
static const struct i2c_device_id mma7660_i2c_id[] = {
|
||||
{ "mma7660" },
|
||||
{ .name = "mma7660" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mma7660_i2c_id);
|
||||
|
|
|
|||
|
|
@ -1829,12 +1829,12 @@ static const struct dev_pm_ops mma8452_pm_ops = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id mma8452_id[] = {
|
||||
{ "fxls8471", (kernel_ulong_t)&mma_chip_info_table[fxls8471] },
|
||||
{ "mma8451", (kernel_ulong_t)&mma_chip_info_table[mma8451] },
|
||||
{ "mma8452", (kernel_ulong_t)&mma_chip_info_table[mma8452] },
|
||||
{ "mma8453", (kernel_ulong_t)&mma_chip_info_table[mma8453] },
|
||||
{ "mma8652", (kernel_ulong_t)&mma_chip_info_table[mma8652] },
|
||||
{ "mma8653", (kernel_ulong_t)&mma_chip_info_table[mma8653] },
|
||||
{ .name = "fxls8471", .driver_data = (kernel_ulong_t)&mma_chip_info_table[fxls8471] },
|
||||
{ .name = "mma8451", .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8451] },
|
||||
{ .name = "mma8452", .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8452] },
|
||||
{ .name = "mma8453", .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8453] },
|
||||
{ .name = "mma8652", .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8652] },
|
||||
{ .name = "mma8653", .driver_data = (kernel_ulong_t)&mma_chip_info_table[mma8653] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mma8452_id);
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ static const struct acpi_device_id mma9551_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, mma9551_acpi_match);
|
||||
|
||||
static const struct i2c_device_id mma9551_id[] = {
|
||||
{ "mma9551" },
|
||||
{ .name = "mma9551" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1219,7 +1219,7 @@ static const struct acpi_device_id mma9553_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, mma9553_acpi_match);
|
||||
|
||||
static const struct i2c_device_id mma9553_id[] = {
|
||||
{ "mma9553" },
|
||||
{ .name = "mma9553" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -580,8 +580,8 @@ static const struct of_device_id mxc4005_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, mxc4005_of_match);
|
||||
|
||||
static const struct i2c_device_id mxc4005_id[] = {
|
||||
{ "mxc4005" },
|
||||
{ "mxc6655" },
|
||||
{ .name = "mxc4005" },
|
||||
{ .name = "mxc6655" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mxc4005_id);
|
||||
|
|
|
|||
|
|
@ -171,8 +171,8 @@ static const struct acpi_device_id mxc6255_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, mxc6255_acpi_match);
|
||||
|
||||
static const struct i2c_device_id mxc6255_id[] = {
|
||||
{ "mxc6225" },
|
||||
{ "mxc6255" },
|
||||
{ .name = "mxc6225" },
|
||||
{ .name = "mxc6255" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mxc6255_id);
|
||||
|
|
|
|||
|
|
@ -138,32 +138,32 @@ static const struct acpi_device_id st_accel_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, st_accel_acpi_match);
|
||||
|
||||
static const struct i2c_device_id st_accel_id_table[] = {
|
||||
{ LSM303DLH_ACCEL_DEV_NAME },
|
||||
{ LSM303DLHC_ACCEL_DEV_NAME },
|
||||
{ LIS3DH_ACCEL_DEV_NAME },
|
||||
{ LSM330D_ACCEL_DEV_NAME },
|
||||
{ LSM330DL_ACCEL_DEV_NAME },
|
||||
{ LSM330DLC_ACCEL_DEV_NAME },
|
||||
{ LIS331DLH_ACCEL_DEV_NAME },
|
||||
{ LSM303DL_ACCEL_DEV_NAME },
|
||||
{ LSM303DLM_ACCEL_DEV_NAME },
|
||||
{ LSM330_ACCEL_DEV_NAME },
|
||||
{ LSM303AGR_ACCEL_DEV_NAME },
|
||||
{ LIS2DH12_ACCEL_DEV_NAME },
|
||||
{ LIS3L02DQ_ACCEL_DEV_NAME },
|
||||
{ LNG2DM_ACCEL_DEV_NAME },
|
||||
{ H3LIS331DL_ACCEL_DEV_NAME },
|
||||
{ LIS331DL_ACCEL_DEV_NAME },
|
||||
{ LIS3LV02DL_ACCEL_DEV_NAME },
|
||||
{ LIS2DW12_ACCEL_DEV_NAME },
|
||||
{ LIS3DE_ACCEL_DEV_NAME },
|
||||
{ LIS2DE12_ACCEL_DEV_NAME },
|
||||
{ LIS2DS12_ACCEL_DEV_NAME },
|
||||
{ LIS2HH12_ACCEL_DEV_NAME },
|
||||
{ LIS302DL_ACCEL_DEV_NAME },
|
||||
{ LSM303C_ACCEL_DEV_NAME },
|
||||
{ SC7A20_ACCEL_DEV_NAME },
|
||||
{ IIS328DQ_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303DLH_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303DLHC_ACCEL_DEV_NAME },
|
||||
{ .name = LIS3DH_ACCEL_DEV_NAME },
|
||||
{ .name = LSM330D_ACCEL_DEV_NAME },
|
||||
{ .name = LSM330DL_ACCEL_DEV_NAME },
|
||||
{ .name = LSM330DLC_ACCEL_DEV_NAME },
|
||||
{ .name = LIS331DLH_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303DL_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303DLM_ACCEL_DEV_NAME },
|
||||
{ .name = LSM330_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303AGR_ACCEL_DEV_NAME },
|
||||
{ .name = LIS2DH12_ACCEL_DEV_NAME },
|
||||
{ .name = LIS3L02DQ_ACCEL_DEV_NAME },
|
||||
{ .name = LNG2DM_ACCEL_DEV_NAME },
|
||||
{ .name = H3LIS331DL_ACCEL_DEV_NAME },
|
||||
{ .name = LIS331DL_ACCEL_DEV_NAME },
|
||||
{ .name = LIS3LV02DL_ACCEL_DEV_NAME },
|
||||
{ .name = LIS2DW12_ACCEL_DEV_NAME },
|
||||
{ .name = LIS3DE_ACCEL_DEV_NAME },
|
||||
{ .name = LIS2DE12_ACCEL_DEV_NAME },
|
||||
{ .name = LIS2DS12_ACCEL_DEV_NAME },
|
||||
{ .name = LIS2HH12_ACCEL_DEV_NAME },
|
||||
{ .name = LIS302DL_ACCEL_DEV_NAME },
|
||||
{ .name = LSM303C_ACCEL_DEV_NAME },
|
||||
{ .name = SC7A20_ACCEL_DEV_NAME },
|
||||
{ .name = IIS328DQ_ACCEL_DEV_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
|
||||
|
|
|
|||
|
|
@ -630,8 +630,8 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8312_pm_ops, stk8312_suspend,
|
|||
|
||||
static const struct i2c_device_id stk8312_i2c_id[] = {
|
||||
/* Deprecated in favour of lowercase form */
|
||||
{ "STK8312" },
|
||||
{ "stk8312" },
|
||||
{ .name = "STK8312" },
|
||||
{ .name = "stk8312" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, stk8312_i2c_id);
|
||||
|
|
|
|||
|
|
@ -519,7 +519,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8ba50_pm_ops, stk8ba50_suspend,
|
|||
stk8ba50_resume);
|
||||
|
||||
static const struct i2c_device_id stk8ba50_i2c_id[] = {
|
||||
{ "stk8ba50" },
|
||||
{ .name = "stk8ba50" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, stk8ba50_i2c_id);
|
||||
|
|
|
|||
|
|
@ -536,7 +536,7 @@ static int ad7291_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad7291_id[] = {
|
||||
{ "ad7291" },
|
||||
{ .name = "ad7291" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -940,14 +940,14 @@ static int ad799x_resume(struct device *dev)
|
|||
static DEFINE_SIMPLE_DEV_PM_OPS(ad799x_pm_ops, ad799x_suspend, ad799x_resume);
|
||||
|
||||
static const struct i2c_device_id ad799x_id[] = {
|
||||
{ "ad7991", ad7991 },
|
||||
{ "ad7995", ad7995 },
|
||||
{ "ad7999", ad7999 },
|
||||
{ "ad7992", ad7992 },
|
||||
{ "ad7993", ad7993 },
|
||||
{ "ad7994", ad7994 },
|
||||
{ "ad7997", ad7997 },
|
||||
{ "ad7998", ad7998 },
|
||||
{ .name = "ad7991", .driver_data = ad7991 },
|
||||
{ .name = "ad7995", .driver_data = ad7995 },
|
||||
{ .name = "ad7999", .driver_data = ad7999 },
|
||||
{ .name = "ad7992", .driver_data = ad7992 },
|
||||
{ .name = "ad7993", .driver_data = ad7993 },
|
||||
{ .name = "ad7994", .driver_data = ad7994 },
|
||||
{ .name = "ad7997", .driver_data = ad7997 },
|
||||
{ .name = "ad7998", .driver_data = ad7998 },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ static const struct of_device_id pmc_adc_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, pmc_adc_of_match);
|
||||
|
||||
static const struct i2c_device_id pmc_adc_id_table[] = {
|
||||
{ "pmc-adc" },
|
||||
{ .name = "pmc-adc" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, pmc_adc_id_table);
|
||||
|
|
|
|||
|
|
@ -1078,12 +1078,12 @@ static void ina2xx_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ina2xx_id[] = {
|
||||
{ "ina219", ina219 },
|
||||
{ "ina220", ina219 },
|
||||
{ "ina226", ina226 },
|
||||
{ "ina230", ina226 },
|
||||
{ "ina231", ina226 },
|
||||
{ "ina236", ina236 },
|
||||
{ .name = "ina219", .driver_data = ina219 },
|
||||
{ .name = "ina220", .driver_data = ina219 },
|
||||
{ .name = "ina226", .driver_data = ina226 },
|
||||
{ .name = "ina230", .driver_data = ina226 },
|
||||
{ .name = "ina231", .driver_data = ina226 },
|
||||
{ .name = "ina236", .driver_data = ina236 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ina2xx_id);
|
||||
|
|
|
|||
|
|
@ -243,8 +243,8 @@ static const struct of_device_id ltc2309_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, ltc2309_of_match);
|
||||
|
||||
static const struct i2c_device_id ltc2309_id[] = {
|
||||
{ "ltc2305", (kernel_ulong_t)<c2305_chip_info },
|
||||
{ "ltc2309", (kernel_ulong_t)<c2309_chip_info },
|
||||
{ .name = "ltc2305", .driver_data = (kernel_ulong_t)<c2305_chip_info },
|
||||
{ .name = "ltc2309", .driver_data = (kernel_ulong_t)<c2309_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ltc2309_id);
|
||||
|
|
|
|||
|
|
@ -136,8 +136,8 @@ static int ltc2471_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ltc2471_i2c_id[] = {
|
||||
{ "ltc2471", ltc2471 },
|
||||
{ "ltc2473", ltc2473 },
|
||||
{ .name = "ltc2471", .driver_data = ltc2471 },
|
||||
{ .name = "ltc2473", .driver_data = ltc2473 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ltc2471_i2c_id);
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static int ltc2485_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ltc2485_id[] = {
|
||||
{ "ltc2485" },
|
||||
{ .name = "ltc2485" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ltc2485_id);
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ static const struct ltc2497_chip_info ltc2497_info[] = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id ltc2497_id[] = {
|
||||
{ "ltc2497", (kernel_ulong_t)<c2497_info[TYPE_LTC2497] },
|
||||
{ "ltc2499", (kernel_ulong_t)<c2497_info[TYPE_LTC2499] },
|
||||
{ .name = "ltc2497", .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2497] },
|
||||
{ .name = "ltc2499", .driver_data = (kernel_ulong_t)<c2497_info[TYPE_LTC2499] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ltc2497_id);
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ static const struct of_device_id max34408_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, max34408_of_match);
|
||||
|
||||
static const struct i2c_device_id max34408_id[] = {
|
||||
{ "max34408", (kernel_ulong_t)&max34408_model_data },
|
||||
{ "max34409", (kernel_ulong_t)&max34409_model_data },
|
||||
{ .name = "max34408", .driver_data = (kernel_ulong_t)&max34408_model_data },
|
||||
{ .name = "max34409", .driver_data = (kernel_ulong_t)&max34409_model_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max34408_id);
|
||||
|
|
|
|||
|
|
@ -383,14 +383,14 @@ static int mcp3422_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id mcp3422_id[] = {
|
||||
{ "mcp3421", 1 },
|
||||
{ "mcp3422", 2 },
|
||||
{ "mcp3423", 3 },
|
||||
{ "mcp3424", 4 },
|
||||
{ "mcp3425", 5 },
|
||||
{ "mcp3426", 6 },
|
||||
{ "mcp3427", 7 },
|
||||
{ "mcp3428", 8 },
|
||||
{ .name = "mcp3421", .driver_data = 1 },
|
||||
{ .name = "mcp3422", .driver_data = 2 },
|
||||
{ .name = "mcp3423", .driver_data = 3 },
|
||||
{ .name = "mcp3424", .driver_data = 4 },
|
||||
{ .name = "mcp3425", .driver_data = 5 },
|
||||
{ .name = "mcp3426", .driver_data = 6 },
|
||||
{ .name = "mcp3427", .driver_data = 7 },
|
||||
{ .name = "mcp3428", .driver_data = 8 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mcp3422_id);
|
||||
|
|
|
|||
|
|
@ -531,7 +531,7 @@ static int nau7802_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id nau7802_i2c_id[] = {
|
||||
{ "nau7802" },
|
||||
{ .name = "nau7802" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, nau7802_i2c_id);
|
||||
|
|
|
|||
|
|
@ -1104,7 +1104,7 @@ static const struct of_device_id bd79124_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, bd79124_of_match);
|
||||
|
||||
static const struct i2c_device_id bd79124_id[] = {
|
||||
{ "bd79124" },
|
||||
{ .name = "bd79124" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bd79124_id);
|
||||
|
|
|
|||
|
|
@ -199,9 +199,9 @@ static int adc081c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adc081c_id[] = {
|
||||
{ "adc081c", (kernel_ulong_t)&adc081c_model },
|
||||
{ "adc101c", (kernel_ulong_t)&adc101c_model },
|
||||
{ "adc121c", (kernel_ulong_t)&adc121c_model },
|
||||
{ .name = "adc081c", .driver_data = (kernel_ulong_t)&adc081c_model },
|
||||
{ .name = "adc101c", .driver_data = (kernel_ulong_t)&adc101c_model },
|
||||
{ .name = "adc121c", .driver_data = (kernel_ulong_t)&adc121c_model },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adc081c_id);
|
||||
|
|
|
|||
|
|
@ -1128,9 +1128,9 @@ static const struct ads1015_chip_data tla2024_data = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id ads1015_id[] = {
|
||||
{ "ads1015", (kernel_ulong_t)&ads1015_data },
|
||||
{ "ads1115", (kernel_ulong_t)&ads1115_data },
|
||||
{ "tla2024", (kernel_ulong_t)&tla2024_data },
|
||||
{ .name = "ads1015", .driver_data = (kernel_ulong_t)&ads1015_data },
|
||||
{ .name = "ads1115", .driver_data = (kernel_ulong_t)&ads1115_data },
|
||||
{ .name = "tla2024", .driver_data = (kernel_ulong_t)&tla2024_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ads1015_id);
|
||||
|
|
|
|||
|
|
@ -400,8 +400,8 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ads1100_pm_ops,
|
|||
NULL);
|
||||
|
||||
static const struct i2c_device_id ads1100_id[] = {
|
||||
{ "ads1100" },
|
||||
{ "ads1000" },
|
||||
{ .name = "ads1100" },
|
||||
{ .name = "ads1000" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -804,7 +804,7 @@ static const struct of_device_id __maybe_unused ads1119_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, ads1119_of_match);
|
||||
|
||||
static const struct i2c_device_id ads1119_id[] = {
|
||||
{ "ads1119" },
|
||||
{ .name = "ads1119" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ads1119_id);
|
||||
|
|
|
|||
|
|
@ -727,8 +727,8 @@ static const struct of_device_id ads7138_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, ads7138_of_match);
|
||||
|
||||
static const struct i2c_device_id ads7138_device_ids[] = {
|
||||
{ "ads7128", (kernel_ulong_t)&ads7128_data },
|
||||
{ "ads7138", (kernel_ulong_t)&ads7138_data },
|
||||
{ .name = "ads7128", .driver_data = (kernel_ulong_t)&ads7128_data },
|
||||
{ .name = "ads7138", .driver_data = (kernel_ulong_t)&ads7138_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ads7138_device_ids);
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ static int ads7924_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ads7924_id[] = {
|
||||
{ "ads7924" },
|
||||
{ .name = "ads7924" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ads7924_id);
|
||||
|
|
|
|||
|
|
@ -628,9 +628,9 @@ static int ad7150_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad7150_id[] = {
|
||||
{ "ad7150", AD7150 },
|
||||
{ "ad7151", AD7151 },
|
||||
{ "ad7156", AD7150 },
|
||||
{ .name = "ad7150", .driver_data = AD7150 },
|
||||
{ .name = "ad7151", .driver_data = AD7151 },
|
||||
{ .name = "ad7156", .driver_data = AD7150 },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -789,9 +789,9 @@ static int ad7746_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad7746_id[] = {
|
||||
{ "ad7745", 7745 },
|
||||
{ "ad7746", 7746 },
|
||||
{ "ad7747", 7747 },
|
||||
{ .name = "ad7745", .driver_data = 7745 },
|
||||
{ .name = "ad7746", .driver_data = 7746 },
|
||||
{ .name = "ad7747", .driver_data = 7747 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ad7746_id);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static int ags02ma_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ags02ma_id_table[] = {
|
||||
{ "ags02ma" },
|
||||
{ .name = "ags02ma" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ags02ma_id_table);
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ static int ams_iaqcore_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ams_iaqcore_id[] = {
|
||||
{ "ams-iaq-core" },
|
||||
{ .name = "ams-iaq-core" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ams_iaqcore_id);
|
||||
|
|
|
|||
|
|
@ -186,9 +186,9 @@ static const struct iio_info atlas_info = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id atlas_ezo_id[] = {
|
||||
{ "atlas-co2-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO] },
|
||||
{ "atlas-o2-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO] },
|
||||
{ "atlas-hum-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO] },
|
||||
{ .name = "atlas-co2-ezo", .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO] },
|
||||
{ .name = "atlas-o2-ezo", .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO] },
|
||||
{ .name = "atlas-hum-ezo", .driver_data = (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, atlas_ezo_id);
|
||||
|
|
|
|||
|
|
@ -586,11 +586,11 @@ static const struct iio_info atlas_info = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id atlas_id[] = {
|
||||
{ "atlas-ph-sm", (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM] },
|
||||
{ "atlas-ec-sm", (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM] },
|
||||
{ "atlas-orp-sm", (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM] },
|
||||
{ "atlas-do-sm", (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM] },
|
||||
{ "atlas-rtd-sm", (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM] },
|
||||
{ .name = "atlas-ph-sm", .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_PH_SM] },
|
||||
{ .name = "atlas-ec-sm", .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_EC_SM] },
|
||||
{ .name = "atlas-orp-sm", .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM] },
|
||||
{ .name = "atlas-do-sm", .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM] },
|
||||
{ .name = "atlas-rtd-sm", .driver_data = (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, atlas_id);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ static int bme680_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id bme680_i2c_id[] = {
|
||||
{ "bme680" },
|
||||
{ .name = "bme680" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bme680_i2c_id);
|
||||
|
|
|
|||
|
|
@ -552,8 +552,8 @@ static void ccs811_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ccs811_id[] = {
|
||||
{ "ccs811" },
|
||||
{ }
|
||||
{ .name = "ccs811" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ccs811_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ static int ens160_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ens160_i2c_id[] = {
|
||||
{ "ens160" },
|
||||
{ .name = "ens160" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ens160_i2c_id);
|
||||
|
|
|
|||
|
|
@ -563,8 +563,8 @@ static void sgp_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id sgp_id[] = {
|
||||
{ "sgp30", (kernel_ulong_t)&sgp_devices[SGP30] },
|
||||
{ "sgpc3", (kernel_ulong_t)&sgp_devices[SGPC3] },
|
||||
{ .name = "sgp30", .driver_data = (kernel_ulong_t)&sgp_devices[SGP30] },
|
||||
{ .name = "sgpc3", .driver_data = (kernel_ulong_t)&sgp_devices[SGPC3] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sgp_id);
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ static int sgp40_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id sgp40_id[] = {
|
||||
{ "sgp40" },
|
||||
{ .name = "sgp40" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ static int sps30_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id sps30_i2c_id[] = {
|
||||
{ "sps30" },
|
||||
{ .name = "sps30" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sps30_i2c_id);
|
||||
|
|
|
|||
|
|
@ -385,8 +385,8 @@ static int vz89x_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id vz89x_id[] = {
|
||||
{ "vz89x", (kernel_ulong_t)&vz89x_chips[VZ89X] },
|
||||
{ "vz89te", (kernel_ulong_t)&vz89x_chips[VZ89TE] },
|
||||
{ .name = "vz89x", .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89X] },
|
||||
{ .name = "vz89te", .driver_data = (kernel_ulong_t)&vz89x_chips[VZ89TE] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, vz89x_id);
|
||||
|
|
|
|||
|
|
@ -1001,53 +1001,53 @@ static int ad5064_i2c_probe(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad5064_i2c_ids[] = {
|
||||
{"ad5625", ID_AD5625 },
|
||||
{"ad5625r-1v25", ID_AD5625R_1V25 },
|
||||
{"ad5625r-2v5", ID_AD5625R_2V5 },
|
||||
{"ad5627", ID_AD5627 },
|
||||
{"ad5627r-1v25", ID_AD5627R_1V25 },
|
||||
{"ad5627r-2v5", ID_AD5627R_2V5 },
|
||||
{"ad5629-1", ID_AD5629_1},
|
||||
{"ad5629-2", ID_AD5629_2},
|
||||
{"ad5629-3", ID_AD5629_2}, /* similar enough to ad5629-2 */
|
||||
{"ad5645r-1v25", ID_AD5645R_1V25 },
|
||||
{"ad5645r-2v5", ID_AD5645R_2V5 },
|
||||
{"ad5665", ID_AD5665 },
|
||||
{"ad5665r-1v25", ID_AD5665R_1V25 },
|
||||
{"ad5665r-2v5", ID_AD5665R_2V5 },
|
||||
{"ad5667", ID_AD5667 },
|
||||
{"ad5667r-1v25", ID_AD5667R_1V25 },
|
||||
{"ad5667r-2v5", ID_AD5667R_2V5 },
|
||||
{"ad5669-1", ID_AD5669_1},
|
||||
{"ad5669-2", ID_AD5669_2},
|
||||
{"ad5669-3", ID_AD5669_2}, /* similar enough to ad5669-2 */
|
||||
{"ltc2606", ID_LTC2606},
|
||||
{"ltc2607", ID_LTC2607},
|
||||
{"ltc2609", ID_LTC2609},
|
||||
{"ltc2616", ID_LTC2616},
|
||||
{"ltc2617", ID_LTC2617},
|
||||
{"ltc2619", ID_LTC2619},
|
||||
{"ltc2626", ID_LTC2626},
|
||||
{"ltc2627", ID_LTC2627},
|
||||
{"ltc2629", ID_LTC2629},
|
||||
{"ltc2631-l12", ID_LTC2631_L12},
|
||||
{"ltc2631-h12", ID_LTC2631_H12},
|
||||
{"ltc2631-l10", ID_LTC2631_L10},
|
||||
{"ltc2631-h10", ID_LTC2631_H10},
|
||||
{"ltc2631-l8", ID_LTC2631_L8},
|
||||
{"ltc2631-h8", ID_LTC2631_H8},
|
||||
{"ltc2633-l12", ID_LTC2633_L12},
|
||||
{"ltc2633-h12", ID_LTC2633_H12},
|
||||
{"ltc2633-l10", ID_LTC2633_L10},
|
||||
{"ltc2633-h10", ID_LTC2633_H10},
|
||||
{"ltc2633-l8", ID_LTC2633_L8},
|
||||
{"ltc2633-h8", ID_LTC2633_H8},
|
||||
{"ltc2635-l12", ID_LTC2635_L12},
|
||||
{"ltc2635-h12", ID_LTC2635_H12},
|
||||
{"ltc2635-l10", ID_LTC2635_L10},
|
||||
{"ltc2635-h10", ID_LTC2635_H10},
|
||||
{"ltc2635-l8", ID_LTC2635_L8},
|
||||
{"ltc2635-h8", ID_LTC2635_H8},
|
||||
{ .name = "ad5625", .driver_data = ID_AD5625 },
|
||||
{ .name = "ad5625r-1v25", .driver_data = ID_AD5625R_1V25 },
|
||||
{ .name = "ad5625r-2v5", .driver_data = ID_AD5625R_2V5 },
|
||||
{ .name = "ad5627", .driver_data = ID_AD5627 },
|
||||
{ .name = "ad5627r-1v25", .driver_data = ID_AD5627R_1V25 },
|
||||
{ .name = "ad5627r-2v5", .driver_data = ID_AD5627R_2V5 },
|
||||
{ .name = "ad5629-1", .driver_data = ID_AD5629_1 },
|
||||
{ .name = "ad5629-2", .driver_data = ID_AD5629_2 },
|
||||
{ .name = "ad5629-3", .driver_data = ID_AD5629_2 }, /* similar enough to ad5629-2 */
|
||||
{ .name = "ad5645r-1v25", .driver_data = ID_AD5645R_1V25 },
|
||||
{ .name = "ad5645r-2v5", .driver_data = ID_AD5645R_2V5 },
|
||||
{ .name = "ad5665", .driver_data = ID_AD5665 },
|
||||
{ .name = "ad5665r-1v25", .driver_data = ID_AD5665R_1V25 },
|
||||
{ .name = "ad5665r-2v5", .driver_data = ID_AD5665R_2V5 },
|
||||
{ .name = "ad5667", .driver_data = ID_AD5667 },
|
||||
{ .name = "ad5667r-1v25", .driver_data = ID_AD5667R_1V25 },
|
||||
{ .name = "ad5667r-2v5", .driver_data = ID_AD5667R_2V5 },
|
||||
{ .name = "ad5669-1", .driver_data = ID_AD5669_1 },
|
||||
{ .name = "ad5669-2", .driver_data = ID_AD5669_2 },
|
||||
{ .name = "ad5669-3", .driver_data = ID_AD5669_2 }, /* similar enough to ad5669-2 */
|
||||
{ .name = "ltc2606", .driver_data = ID_LTC2606 },
|
||||
{ .name = "ltc2607", .driver_data = ID_LTC2607 },
|
||||
{ .name = "ltc2609", .driver_data = ID_LTC2609 },
|
||||
{ .name = "ltc2616", .driver_data = ID_LTC2616 },
|
||||
{ .name = "ltc2617", .driver_data = ID_LTC2617 },
|
||||
{ .name = "ltc2619", .driver_data = ID_LTC2619 },
|
||||
{ .name = "ltc2626", .driver_data = ID_LTC2626 },
|
||||
{ .name = "ltc2627", .driver_data = ID_LTC2627 },
|
||||
{ .name = "ltc2629", .driver_data = ID_LTC2629 },
|
||||
{ .name = "ltc2631-l12", .driver_data = ID_LTC2631_L12 },
|
||||
{ .name = "ltc2631-h12", .driver_data = ID_LTC2631_H12 },
|
||||
{ .name = "ltc2631-l10", .driver_data = ID_LTC2631_L10 },
|
||||
{ .name = "ltc2631-h10", .driver_data = ID_LTC2631_H10 },
|
||||
{ .name = "ltc2631-l8", .driver_data = ID_LTC2631_L8 },
|
||||
{ .name = "ltc2631-h8", .driver_data = ID_LTC2631_H8 },
|
||||
{ .name = "ltc2633-l12", .driver_data = ID_LTC2633_L12 },
|
||||
{ .name = "ltc2633-h12", .driver_data = ID_LTC2633_H12 },
|
||||
{ .name = "ltc2633-l10", .driver_data = ID_LTC2633_L10 },
|
||||
{ .name = "ltc2633-h10", .driver_data = ID_LTC2633_H10 },
|
||||
{ .name = "ltc2633-l8", .driver_data = ID_LTC2633_L8 },
|
||||
{ .name = "ltc2633-h8", .driver_data = ID_LTC2633_H8 },
|
||||
{ .name = "ltc2635-l12", .driver_data = ID_LTC2635_L12 },
|
||||
{ .name = "ltc2635-h12", .driver_data = ID_LTC2635_H12 },
|
||||
{ .name = "ltc2635-l10", .driver_data = ID_LTC2635_L10 },
|
||||
{ .name = "ltc2635-h10", .driver_data = ID_LTC2635_H10 },
|
||||
{ .name = "ltc2635-l8", .driver_data = ID_LTC2635_L8 },
|
||||
{ .name = "ltc2635-h8", .driver_data = ID_LTC2635_H8 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ad5064_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -513,22 +513,22 @@ static int ad5380_i2c_probe(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad5380_i2c_ids[] = {
|
||||
{ "ad5380-3", ID_AD5380_3 },
|
||||
{ "ad5380-5", ID_AD5380_5 },
|
||||
{ "ad5381-3", ID_AD5381_3 },
|
||||
{ "ad5381-5", ID_AD5381_5 },
|
||||
{ "ad5382-3", ID_AD5382_3 },
|
||||
{ "ad5382-5", ID_AD5382_5 },
|
||||
{ "ad5383-3", ID_AD5383_3 },
|
||||
{ "ad5383-5", ID_AD5383_5 },
|
||||
{ "ad5384-3", ID_AD5380_3 },
|
||||
{ "ad5384-5", ID_AD5380_5 },
|
||||
{ "ad5390-3", ID_AD5390_3 },
|
||||
{ "ad5390-5", ID_AD5390_5 },
|
||||
{ "ad5391-3", ID_AD5391_3 },
|
||||
{ "ad5391-5", ID_AD5391_5 },
|
||||
{ "ad5392-3", ID_AD5392_3 },
|
||||
{ "ad5392-5", ID_AD5392_5 },
|
||||
{ .name = "ad5380-3", .driver_data = ID_AD5380_3 },
|
||||
{ .name = "ad5380-5", .driver_data = ID_AD5380_5 },
|
||||
{ .name = "ad5381-3", .driver_data = ID_AD5381_3 },
|
||||
{ .name = "ad5381-5", .driver_data = ID_AD5381_5 },
|
||||
{ .name = "ad5382-3", .driver_data = ID_AD5382_3 },
|
||||
{ .name = "ad5382-5", .driver_data = ID_AD5382_5 },
|
||||
{ .name = "ad5383-3", .driver_data = ID_AD5383_3 },
|
||||
{ .name = "ad5383-5", .driver_data = ID_AD5383_5 },
|
||||
{ .name = "ad5384-3", .driver_data = ID_AD5380_3 },
|
||||
{ .name = "ad5384-5", .driver_data = ID_AD5380_5 },
|
||||
{ .name = "ad5390-3", .driver_data = ID_AD5390_3 },
|
||||
{ .name = "ad5390-5", .driver_data = ID_AD5390_5 },
|
||||
{ .name = "ad5391-3", .driver_data = ID_AD5391_3 },
|
||||
{ .name = "ad5391-5", .driver_data = ID_AD5391_5 },
|
||||
{ .name = "ad5392-3", .driver_data = ID_AD5392_3 },
|
||||
{ .name = "ad5392-5", .driver_data = ID_AD5392_5 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ad5380_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -65,12 +65,12 @@ static const struct ad5446_chip_info ad5622_chip_info = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id ad5446_i2c_ids[] = {
|
||||
{"ad5301", (kernel_ulong_t)&ad5602_chip_info},
|
||||
{"ad5311", (kernel_ulong_t)&ad5612_chip_info},
|
||||
{"ad5321", (kernel_ulong_t)&ad5622_chip_info},
|
||||
{"ad5602", (kernel_ulong_t)&ad5602_chip_info},
|
||||
{"ad5612", (kernel_ulong_t)&ad5612_chip_info},
|
||||
{"ad5622", (kernel_ulong_t)&ad5622_chip_info},
|
||||
{ .name = "ad5301", .driver_data = (kernel_ulong_t)&ad5602_chip_info },
|
||||
{ .name = "ad5311", .driver_data = (kernel_ulong_t)&ad5612_chip_info },
|
||||
{ .name = "ad5321", .driver_data = (kernel_ulong_t)&ad5622_chip_info },
|
||||
{ .name = "ad5602", .driver_data = (kernel_ulong_t)&ad5602_chip_info },
|
||||
{ .name = "ad5612", .driver_data = (kernel_ulong_t)&ad5612_chip_info },
|
||||
{ .name = "ad5622", .driver_data = (kernel_ulong_t)&ad5622_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ad5446_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -66,22 +66,22 @@ static int ad5686_i2c_probe(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ad5686_i2c_id[] = {
|
||||
{"ad5311r", ID_AD5311R},
|
||||
{"ad5337r", ID_AD5337R},
|
||||
{"ad5338r", ID_AD5338R},
|
||||
{"ad5671r", ID_AD5671R},
|
||||
{"ad5673r", ID_AD5673R},
|
||||
{"ad5675r", ID_AD5675R},
|
||||
{"ad5677r", ID_AD5677R},
|
||||
{"ad5691r", ID_AD5691R},
|
||||
{"ad5692r", ID_AD5692R},
|
||||
{"ad5693", ID_AD5693},
|
||||
{"ad5693r", ID_AD5693R},
|
||||
{"ad5694", ID_AD5694},
|
||||
{"ad5694r", ID_AD5694R},
|
||||
{"ad5695r", ID_AD5695R},
|
||||
{"ad5696", ID_AD5696},
|
||||
{"ad5696r", ID_AD5696R},
|
||||
{ .name = "ad5311r", .driver_data = ID_AD5311R },
|
||||
{ .name = "ad5337r", .driver_data = ID_AD5337R },
|
||||
{ .name = "ad5338r", .driver_data = ID_AD5338R },
|
||||
{ .name = "ad5671r", .driver_data = ID_AD5671R },
|
||||
{ .name = "ad5673r", .driver_data = ID_AD5673R },
|
||||
{ .name = "ad5675r", .driver_data = ID_AD5675R },
|
||||
{ .name = "ad5677r", .driver_data = ID_AD5677R },
|
||||
{ .name = "ad5691r", .driver_data = ID_AD5691R },
|
||||
{ .name = "ad5692r", .driver_data = ID_AD5692R },
|
||||
{ .name = "ad5693", .driver_data = ID_AD5693 },
|
||||
{ .name = "ad5693r", .driver_data = ID_AD5693R },
|
||||
{ .name = "ad5694", .driver_data = ID_AD5694 },
|
||||
{ .name = "ad5694r", .driver_data = ID_AD5694R },
|
||||
{ .name = "ad5695r", .driver_data = ID_AD5695R },
|
||||
{ .name = "ad5696", .driver_data = ID_AD5696 },
|
||||
{ .name = "ad5696r", .driver_data = ID_AD5696R },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ad5686_i2c_id);
|
||||
|
|
|
|||
|
|
@ -401,10 +401,10 @@ static void ds4424_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id ds4424_id[] = {
|
||||
{ "ds4402", (kernel_ulong_t)&ds4402_info },
|
||||
{ "ds4404", (kernel_ulong_t)&ds4404_info },
|
||||
{ "ds4422", (kernel_ulong_t)&ds4422_info },
|
||||
{ "ds4424", (kernel_ulong_t)&ds4424_info },
|
||||
{ .name = "ds4402", .driver_data = (kernel_ulong_t)&ds4402_info },
|
||||
{ .name = "ds4404", .driver_data = (kernel_ulong_t)&ds4404_info },
|
||||
{ .name = "ds4422", .driver_data = (kernel_ulong_t)&ds4422_info },
|
||||
{ .name = "ds4424", .driver_data = (kernel_ulong_t)&ds4424_info },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ static void m62332_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id m62332_id[] = {
|
||||
{ "m62332", },
|
||||
{ .name = "m62332" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, m62332_id);
|
||||
|
|
|
|||
|
|
@ -187,11 +187,11 @@ static int max517_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id max517_id[] = {
|
||||
{ "max517", ID_MAX517 },
|
||||
{ "max518", ID_MAX518 },
|
||||
{ "max519", ID_MAX519 },
|
||||
{ "max520", ID_MAX520 },
|
||||
{ "max521", ID_MAX521 },
|
||||
{ .name = "max517", .driver_data = ID_MAX517 },
|
||||
{ .name = "max518", .driver_data = ID_MAX518 },
|
||||
{ .name = "max519", .driver_data = ID_MAX519 },
|
||||
{ .name = "max520", .driver_data = ID_MAX520 },
|
||||
{ .name = "max521", .driver_data = ID_MAX521 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max517_id);
|
||||
|
|
|
|||
|
|
@ -523,8 +523,8 @@ static const struct mcp4725_chip_info mcp4726 = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id mcp4725_id[] = {
|
||||
{ "mcp4725", (kernel_ulong_t)&mcp4725 },
|
||||
{ "mcp4726", (kernel_ulong_t)&mcp4726 },
|
||||
{ .name = "mcp4725", .driver_data = (kernel_ulong_t)&mcp4725 },
|
||||
{ .name = "mcp4726", .driver_data = (kernel_ulong_t)&mcp4726 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mcp4725_id);
|
||||
|
|
|
|||
|
|
@ -572,7 +572,7 @@ static int mcp4728_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id mcp4728_id[] = {
|
||||
{ "mcp4728" },
|
||||
{ .name = "mcp4728" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mcp4728_id);
|
||||
|
|
|
|||
|
|
@ -1170,30 +1170,30 @@ static int mcp47feb02_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id mcp47feb02_id[] = {
|
||||
{ "mcp47feb01", (kernel_ulong_t)&mcp47feb01_chip_features },
|
||||
{ "mcp47feb02", (kernel_ulong_t)&mcp47feb02_chip_features },
|
||||
{ "mcp47feb04", (kernel_ulong_t)&mcp47feb04_chip_features },
|
||||
{ "mcp47feb08", (kernel_ulong_t)&mcp47feb08_chip_features },
|
||||
{ "mcp47feb11", (kernel_ulong_t)&mcp47feb11_chip_features },
|
||||
{ "mcp47feb12", (kernel_ulong_t)&mcp47feb12_chip_features },
|
||||
{ "mcp47feb14", (kernel_ulong_t)&mcp47feb14_chip_features },
|
||||
{ "mcp47feb18", (kernel_ulong_t)&mcp47feb18_chip_features },
|
||||
{ "mcp47feb21", (kernel_ulong_t)&mcp47feb21_chip_features },
|
||||
{ "mcp47feb22", (kernel_ulong_t)&mcp47feb22_chip_features },
|
||||
{ "mcp47feb24", (kernel_ulong_t)&mcp47feb24_chip_features },
|
||||
{ "mcp47feb28", (kernel_ulong_t)&mcp47feb28_chip_features },
|
||||
{ "mcp47fvb01", (kernel_ulong_t)&mcp47fvb01_chip_features },
|
||||
{ "mcp47fvb02", (kernel_ulong_t)&mcp47fvb02_chip_features },
|
||||
{ "mcp47fvb04", (kernel_ulong_t)&mcp47fvb04_chip_features },
|
||||
{ "mcp47fvb08", (kernel_ulong_t)&mcp47fvb08_chip_features },
|
||||
{ "mcp47fvb11", (kernel_ulong_t)&mcp47fvb11_chip_features },
|
||||
{ "mcp47fvb12", (kernel_ulong_t)&mcp47fvb12_chip_features },
|
||||
{ "mcp47fvb14", (kernel_ulong_t)&mcp47fvb14_chip_features },
|
||||
{ "mcp47fvb18", (kernel_ulong_t)&mcp47fvb18_chip_features },
|
||||
{ "mcp47fvb21", (kernel_ulong_t)&mcp47fvb21_chip_features },
|
||||
{ "mcp47fvb22", (kernel_ulong_t)&mcp47fvb22_chip_features },
|
||||
{ "mcp47fvb24", (kernel_ulong_t)&mcp47fvb24_chip_features },
|
||||
{ "mcp47fvb28", (kernel_ulong_t)&mcp47fvb28_chip_features },
|
||||
{ .name = "mcp47feb01", .driver_data = (kernel_ulong_t)&mcp47feb01_chip_features },
|
||||
{ .name = "mcp47feb02", .driver_data = (kernel_ulong_t)&mcp47feb02_chip_features },
|
||||
{ .name = "mcp47feb04", .driver_data = (kernel_ulong_t)&mcp47feb04_chip_features },
|
||||
{ .name = "mcp47feb08", .driver_data = (kernel_ulong_t)&mcp47feb08_chip_features },
|
||||
{ .name = "mcp47feb11", .driver_data = (kernel_ulong_t)&mcp47feb11_chip_features },
|
||||
{ .name = "mcp47feb12", .driver_data = (kernel_ulong_t)&mcp47feb12_chip_features },
|
||||
{ .name = "mcp47feb14", .driver_data = (kernel_ulong_t)&mcp47feb14_chip_features },
|
||||
{ .name = "mcp47feb18", .driver_data = (kernel_ulong_t)&mcp47feb18_chip_features },
|
||||
{ .name = "mcp47feb21", .driver_data = (kernel_ulong_t)&mcp47feb21_chip_features },
|
||||
{ .name = "mcp47feb22", .driver_data = (kernel_ulong_t)&mcp47feb22_chip_features },
|
||||
{ .name = "mcp47feb24", .driver_data = (kernel_ulong_t)&mcp47feb24_chip_features },
|
||||
{ .name = "mcp47feb28", .driver_data = (kernel_ulong_t)&mcp47feb28_chip_features },
|
||||
{ .name = "mcp47fvb01", .driver_data = (kernel_ulong_t)&mcp47fvb01_chip_features },
|
||||
{ .name = "mcp47fvb02", .driver_data = (kernel_ulong_t)&mcp47fvb02_chip_features },
|
||||
{ .name = "mcp47fvb04", .driver_data = (kernel_ulong_t)&mcp47fvb04_chip_features },
|
||||
{ .name = "mcp47fvb08", .driver_data = (kernel_ulong_t)&mcp47fvb08_chip_features },
|
||||
{ .name = "mcp47fvb11", .driver_data = (kernel_ulong_t)&mcp47fvb11_chip_features },
|
||||
{ .name = "mcp47fvb12", .driver_data = (kernel_ulong_t)&mcp47fvb12_chip_features },
|
||||
{ .name = "mcp47fvb14", .driver_data = (kernel_ulong_t)&mcp47fvb14_chip_features },
|
||||
{ .name = "mcp47fvb18", .driver_data = (kernel_ulong_t)&mcp47fvb18_chip_features },
|
||||
{ .name = "mcp47fvb21", .driver_data = (kernel_ulong_t)&mcp47fvb21_chip_features },
|
||||
{ .name = "mcp47fvb22", .driver_data = (kernel_ulong_t)&mcp47fvb22_chip_features },
|
||||
{ .name = "mcp47fvb24", .driver_data = (kernel_ulong_t)&mcp47fvb24_chip_features },
|
||||
{ .name = "mcp47fvb28", .driver_data = (kernel_ulong_t)&mcp47fvb28_chip_features },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mcp47feb02_id);
|
||||
|
|
|
|||
|
|
@ -402,17 +402,17 @@ static const struct of_device_id dac5571_of_id[] = {
|
|||
MODULE_DEVICE_TABLE(of, dac5571_of_id);
|
||||
|
||||
static const struct i2c_device_id dac5571_id[] = {
|
||||
{"dac081c081", (kernel_ulong_t)&dac5571_spec[single_8bit] },
|
||||
{"dac121c081", (kernel_ulong_t)&dac5571_spec[single_12bit] },
|
||||
{"dac5571", (kernel_ulong_t)&dac5571_spec[single_8bit] },
|
||||
{"dac6571", (kernel_ulong_t)&dac5571_spec[single_10bit] },
|
||||
{"dac7571", (kernel_ulong_t)&dac5571_spec[single_12bit] },
|
||||
{"dac5574", (kernel_ulong_t)&dac5571_spec[quad_8bit] },
|
||||
{"dac6574", (kernel_ulong_t)&dac5571_spec[quad_10bit] },
|
||||
{"dac7574", (kernel_ulong_t)&dac5571_spec[quad_12bit] },
|
||||
{"dac5573", (kernel_ulong_t)&dac5571_spec[quad_8bit] },
|
||||
{"dac6573", (kernel_ulong_t)&dac5571_spec[quad_10bit] },
|
||||
{"dac7573", (kernel_ulong_t)&dac5571_spec[quad_12bit] },
|
||||
{ .name = "dac081c081", .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] },
|
||||
{ .name = "dac121c081", .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] },
|
||||
{ .name = "dac5571", .driver_data = (kernel_ulong_t)&dac5571_spec[single_8bit] },
|
||||
{ .name = "dac6571", .driver_data = (kernel_ulong_t)&dac5571_spec[single_10bit] },
|
||||
{ .name = "dac7571", .driver_data = (kernel_ulong_t)&dac5571_spec[single_12bit] },
|
||||
{ .name = "dac5574", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] },
|
||||
{ .name = "dac6574", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] },
|
||||
{ .name = "dac7574", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] },
|
||||
{ .name = "dac5573", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_8bit] },
|
||||
{ .name = "dac6573", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_10bit] },
|
||||
{ .name = "dac7573", .driver_data = (kernel_ulong_t)&dac5571_spec[quad_12bit] },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, dac5571_id);
|
||||
|
|
|
|||
|
|
@ -47,9 +47,9 @@ static const struct acpi_device_id bmg160_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, bmg160_acpi_match);
|
||||
|
||||
static const struct i2c_device_id bmg160_i2c_id[] = {
|
||||
{ "bmg160" },
|
||||
{ "bmi055_gyro" },
|
||||
{ "bmi088_gyro" },
|
||||
{ .name = "bmg160" },
|
||||
{ .name = "bmi055_gyro" },
|
||||
{ .name = "bmi088_gyro" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ static void fxas21002c_i2c_remove(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id fxas21002c_i2c_id[] = {
|
||||
{ "fxas21002c" },
|
||||
{ .name = "fxas21002c" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, fxas21002c_i2c_id);
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(itg3200_pm_ops, itg3200_suspend,
|
|||
itg3200_resume);
|
||||
|
||||
static const struct i2c_device_id itg3200_id[] = {
|
||||
{ "itg3200" },
|
||||
{ .name = "itg3200" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, itg3200_id);
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ static void mpu3050_i2c_remove(struct i2c_client *client)
|
|||
* supported by this driver
|
||||
*/
|
||||
static const struct i2c_device_id mpu3050_i2c_id[] = {
|
||||
{ "mpu3050" },
|
||||
{ .name = "mpu3050" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mpu3050_i2c_id);
|
||||
|
|
|
|||
|
|
@ -93,15 +93,15 @@ static int st_gyro_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id st_gyro_id_table[] = {
|
||||
{ L3G4200D_GYRO_DEV_NAME },
|
||||
{ LSM330D_GYRO_DEV_NAME },
|
||||
{ LSM330DL_GYRO_DEV_NAME },
|
||||
{ LSM330DLC_GYRO_DEV_NAME },
|
||||
{ L3GD20_GYRO_DEV_NAME },
|
||||
{ L3GD20H_GYRO_DEV_NAME },
|
||||
{ L3G4IS_GYRO_DEV_NAME },
|
||||
{ LSM330_GYRO_DEV_NAME },
|
||||
{ LSM9DS0_GYRO_DEV_NAME },
|
||||
{ .name = L3G4200D_GYRO_DEV_NAME },
|
||||
{ .name = LSM330D_GYRO_DEV_NAME },
|
||||
{ .name = LSM330DL_GYRO_DEV_NAME },
|
||||
{ .name = LSM330DLC_GYRO_DEV_NAME },
|
||||
{ .name = L3GD20_GYRO_DEV_NAME },
|
||||
{ .name = L3GD20H_GYRO_DEV_NAME },
|
||||
{ .name = L3G4IS_GYRO_DEV_NAME },
|
||||
{ .name = LSM330_GYRO_DEV_NAME },
|
||||
{ .name = LSM9DS0_GYRO_DEV_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st_gyro_id_table);
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ static int afe4404_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id afe4404_ids[] = {
|
||||
{ "afe4404" },
|
||||
{ .name = "afe4404" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, afe4404_ids);
|
||||
|
|
|
|||
|
|
@ -507,7 +507,7 @@ static void max30100_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id max30100_id[] = {
|
||||
{ "max30100" },
|
||||
{ .name = "max30100" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max30100_id);
|
||||
|
|
|
|||
|
|
@ -596,9 +596,9 @@ static void max30102_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id max30102_id[] = {
|
||||
{ "max30101", max30105 },
|
||||
{ "max30102", max30102 },
|
||||
{ "max30105", max30105 },
|
||||
{ .name = "max30101", .driver_data = max30105 },
|
||||
{ .name = "max30102", .driver_data = max30102 },
|
||||
{ .name = "max30105", .driver_data = max30105 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max30102_id);
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ static int am2315_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id am2315_i2c_id[] = {
|
||||
{ "am2315" },
|
||||
{ .name = "am2315" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, am2315_i2c_id);
|
||||
|
|
|
|||
|
|
@ -314,12 +314,12 @@ static const struct of_device_id ens210_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, ens210_of_match);
|
||||
|
||||
static const struct i2c_device_id ens210_id_table[] = {
|
||||
{ "ens210", (kernel_ulong_t)&ens210_chip_info_data },
|
||||
{ "ens210a", (kernel_ulong_t)&ens210a_chip_info_data },
|
||||
{ "ens211", (kernel_ulong_t)&ens211_chip_info_data },
|
||||
{ "ens212", (kernel_ulong_t)&ens212_chip_info_data },
|
||||
{ "ens213a", (kernel_ulong_t)&ens213a_chip_info_data },
|
||||
{ "ens215", (kernel_ulong_t)&ens215_chip_info_data },
|
||||
{ .name = "ens210", .driver_data = (kernel_ulong_t)&ens210_chip_info_data },
|
||||
{ .name = "ens210a", .driver_data = (kernel_ulong_t)&ens210a_chip_info_data },
|
||||
{ .name = "ens211", .driver_data = (kernel_ulong_t)&ens211_chip_info_data },
|
||||
{ .name = "ens212", .driver_data = (kernel_ulong_t)&ens212_chip_info_data },
|
||||
{ .name = "ens213a", .driver_data = (kernel_ulong_t)&ens213a_chip_info_data },
|
||||
{ .name = "ens215", .driver_data = (kernel_ulong_t)&ens215_chip_info_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ens210_id_table);
|
||||
|
|
|
|||
|
|
@ -380,12 +380,12 @@ static int hdc100x_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id hdc100x_id[] = {
|
||||
{ "hdc100x" },
|
||||
{ "hdc1000" },
|
||||
{ "hdc1008" },
|
||||
{ "hdc1010" },
|
||||
{ "hdc1050" },
|
||||
{ "hdc1080" },
|
||||
{ .name = "hdc100x" },
|
||||
{ .name = "hdc1000" },
|
||||
{ .name = "hdc1008" },
|
||||
{ .name = "hdc1010" },
|
||||
{ .name = "hdc1050" },
|
||||
{ .name = "hdc1080" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, hdc100x_id);
|
||||
|
|
|
|||
|
|
@ -317,8 +317,8 @@ static void hdc2010_remove(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id hdc2010_id[] = {
|
||||
{ "hdc2010" },
|
||||
{ "hdc2080" },
|
||||
{ .name = "hdc2010" },
|
||||
{ .name = "hdc2080" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, hdc2010_id);
|
||||
|
|
|
|||
|
|
@ -873,9 +873,9 @@ static int hdc3020_resume(struct device *dev)
|
|||
static DEFINE_SIMPLE_DEV_PM_OPS(hdc3020_pm_ops, hdc3020_suspend, hdc3020_resume);
|
||||
|
||||
static const struct i2c_device_id hdc3020_id[] = {
|
||||
{ "hdc3020" },
|
||||
{ "hdc3021" },
|
||||
{ "hdc3022" },
|
||||
{ .name = "hdc3020" },
|
||||
{ .name = "hdc3021" },
|
||||
{ .name = "hdc3022" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, hdc3020_id);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ static const struct of_device_id hts221_i2c_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, hts221_i2c_of_match);
|
||||
|
||||
static const struct i2c_device_id hts221_i2c_id_table[] = {
|
||||
{ HTS221_DEV_NAME },
|
||||
{ .name = HTS221_DEV_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, hts221_i2c_id_table);
|
||||
|
|
|
|||
|
|
@ -230,8 +230,8 @@ static int htu21_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id htu21_id[] = {
|
||||
{"htu21", HTU21},
|
||||
{"ms8607-humidity", MS8607},
|
||||
{ .name = "htu21", .driver_data = HTU21 },
|
||||
{ .name = "ms8607-humidity", .driver_data = MS8607 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, htu21_id);
|
||||
|
|
|
|||
|
|
@ -163,8 +163,8 @@ static int si7005_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id si7005_id[] = {
|
||||
{ "si7005" },
|
||||
{ "th02" },
|
||||
{ .name = "si7005" },
|
||||
{ .name = "th02" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, si7005_id);
|
||||
|
|
|
|||
|
|
@ -267,8 +267,8 @@ static int si7020_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id si7020_id[] = {
|
||||
{ "si7020" },
|
||||
{ "th06" },
|
||||
{ .name = "si7020" },
|
||||
{ .name = "th06" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, si7020_id);
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ static int bmi160_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id bmi160_i2c_id[] = {
|
||||
{ "bmi120" },
|
||||
{ "bmi160" },
|
||||
{ .name = "bmi120" },
|
||||
{ .name = "bmi160" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bmi160_i2c_id);
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ static int bmi270_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id bmi270_i2c_id[] = {
|
||||
{ "bmi260", (kernel_ulong_t)&bmi260_chip_info },
|
||||
{ "bmi270", (kernel_ulong_t)&bmi270_chip_info },
|
||||
{ .name = "bmi260", .driver_data = (kernel_ulong_t)&bmi260_chip_info },
|
||||
{ .name = "bmi270", .driver_data = (kernel_ulong_t)&bmi270_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bmi270_i2c_id);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ static const struct acpi_device_id bmi323_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, bmi323_acpi_match);
|
||||
|
||||
static const struct i2c_device_id bmi323_i2c_ids[] = {
|
||||
{ "bmi323" },
|
||||
{ .name = "bmi323" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bmi323_i2c_ids);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ static int bno055_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id bno055_i2c_id[] = {
|
||||
{ "bno055" },
|
||||
{ .name = "bno055" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bno055_i2c_id);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ static int fxos8700_i2c_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id fxos8700_i2c_id[] = {
|
||||
{ "fxos8700" },
|
||||
{ .name = "fxos8700" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, fxos8700_i2c_id);
|
||||
|
|
|
|||
|
|
@ -75,13 +75,13 @@ static int inv_icm42600_probe(struct i2c_client *client)
|
|||
* supported by this driver
|
||||
*/
|
||||
static const struct i2c_device_id inv_icm42600_id[] = {
|
||||
{ "icm42600", INV_CHIP_ICM42600 },
|
||||
{ "icm42602", INV_CHIP_ICM42602 },
|
||||
{ "icm42605", INV_CHIP_ICM42605 },
|
||||
{ "icm42686", INV_CHIP_ICM42686 },
|
||||
{ "icm42622", INV_CHIP_ICM42622 },
|
||||
{ "icm42688", INV_CHIP_ICM42688 },
|
||||
{ "icm42631", INV_CHIP_ICM42631 },
|
||||
{ .name = "icm42600", .driver_data = INV_CHIP_ICM42600 },
|
||||
{ .name = "icm42602", .driver_data = INV_CHIP_ICM42602 },
|
||||
{ .name = "icm42605", .driver_data = INV_CHIP_ICM42605 },
|
||||
{ .name = "icm42686", .driver_data = INV_CHIP_ICM42686 },
|
||||
{ .name = "icm42622", .driver_data = INV_CHIP_ICM42622 },
|
||||
{ .name = "icm42688", .driver_data = INV_CHIP_ICM42688 },
|
||||
{ .name = "icm42631", .driver_data = INV_CHIP_ICM42631 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, inv_icm42600_id);
|
||||
|
|
|
|||
|
|
@ -39,14 +39,14 @@ static int inv_icm45600_probe(struct i2c_client *client)
|
|||
* supported by this driver.
|
||||
*/
|
||||
static const struct i2c_device_id inv_icm45600_id[] = {
|
||||
{ "icm45605", (kernel_ulong_t)&inv_icm45605_chip_info },
|
||||
{ "icm45606", (kernel_ulong_t)&inv_icm45606_chip_info },
|
||||
{ "icm45608", (kernel_ulong_t)&inv_icm45608_chip_info },
|
||||
{ "icm45634", (kernel_ulong_t)&inv_icm45634_chip_info },
|
||||
{ "icm45686", (kernel_ulong_t)&inv_icm45686_chip_info },
|
||||
{ "icm45687", (kernel_ulong_t)&inv_icm45687_chip_info },
|
||||
{ "icm45688p", (kernel_ulong_t)&inv_icm45688p_chip_info },
|
||||
{ "icm45689", (kernel_ulong_t)&inv_icm45689_chip_info },
|
||||
{ .name = "icm45605", .driver_data = (kernel_ulong_t)&inv_icm45605_chip_info },
|
||||
{ .name = "icm45606", .driver_data = (kernel_ulong_t)&inv_icm45606_chip_info },
|
||||
{ .name = "icm45608", .driver_data = (kernel_ulong_t)&inv_icm45608_chip_info },
|
||||
{ .name = "icm45634", .driver_data = (kernel_ulong_t)&inv_icm45634_chip_info },
|
||||
{ .name = "icm45686", .driver_data = (kernel_ulong_t)&inv_icm45686_chip_info },
|
||||
{ .name = "icm45687", .driver_data = (kernel_ulong_t)&inv_icm45687_chip_info },
|
||||
{ .name = "icm45688p", .driver_data = (kernel_ulong_t)&inv_icm45688p_chip_info },
|
||||
{ .name = "icm45689", .driver_data = (kernel_ulong_t)&inv_icm45689_chip_info },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, inv_icm45600_id);
|
||||
|
|
|
|||
|
|
@ -174,24 +174,24 @@ static void inv_mpu_remove(struct i2c_client *client)
|
|||
* supported by this driver
|
||||
*/
|
||||
static const struct i2c_device_id inv_mpu_id[] = {
|
||||
{"mpu6050", INV_MPU6050},
|
||||
{"mpu6500", INV_MPU6500},
|
||||
{"mpu6515", INV_MPU6515},
|
||||
{"mpu6880", INV_MPU6880},
|
||||
{"mpu9150", INV_MPU9150},
|
||||
{"mpu9250", INV_MPU9250},
|
||||
{"mpu9255", INV_MPU9255},
|
||||
{"icm20608", INV_ICM20608},
|
||||
{"icm20608d", INV_ICM20608D},
|
||||
{"icm20609", INV_ICM20609},
|
||||
{"icm20689", INV_ICM20689},
|
||||
{"icm20600", INV_ICM20600},
|
||||
{"icm20602", INV_ICM20602},
|
||||
{"icm20690", INV_ICM20690},
|
||||
{"iam20380", INV_IAM20380},
|
||||
{"iam20680", INV_IAM20680},
|
||||
{"iam20680hp", INV_IAM20680HP},
|
||||
{"iam20680ht", INV_IAM20680HT},
|
||||
{ .name = "mpu6050", .driver_data = INV_MPU6050 },
|
||||
{ .name = "mpu6500", .driver_data = INV_MPU6500 },
|
||||
{ .name = "mpu6515", .driver_data = INV_MPU6515 },
|
||||
{ .name = "mpu6880", .driver_data = INV_MPU6880 },
|
||||
{ .name = "mpu9150", .driver_data = INV_MPU9150 },
|
||||
{ .name = "mpu9250", .driver_data = INV_MPU9250 },
|
||||
{ .name = "mpu9255", .driver_data = INV_MPU9255 },
|
||||
{ .name = "icm20608", .driver_data = INV_ICM20608 },
|
||||
{ .name = "icm20608d", .driver_data = INV_ICM20608D },
|
||||
{ .name = "icm20609", .driver_data = INV_ICM20609 },
|
||||
{ .name = "icm20689", .driver_data = INV_ICM20689 },
|
||||
{ .name = "icm20600", .driver_data = INV_ICM20600 },
|
||||
{ .name = "icm20602", .driver_data = INV_ICM20602 },
|
||||
{ .name = "icm20690", .driver_data = INV_ICM20690 },
|
||||
{ .name = "iam20380", .driver_data = INV_IAM20380 },
|
||||
{ .name = "iam20680", .driver_data = INV_IAM20680 },
|
||||
{ .name = "iam20680hp", .driver_data = INV_IAM20680HP },
|
||||
{ .name = "iam20680ht", .driver_data = INV_IAM20680HT },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1481,7 +1481,7 @@ static const struct dev_pm_ops kmx61_pm_ops = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id kmx61_id[] = {
|
||||
{ "kmx611021" },
|
||||
{ .name = "kmx611021" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -150,30 +150,30 @@ static const struct acpi_device_id st_lsm6dsx_i2c_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, st_lsm6dsx_i2c_acpi_match);
|
||||
|
||||
static const struct i2c_device_id st_lsm6dsx_i2c_id_table[] = {
|
||||
{ ST_LSM6DS3_DEV_NAME, ST_LSM6DS3_ID },
|
||||
{ ST_LSM6DS3H_DEV_NAME, ST_LSM6DS3H_ID },
|
||||
{ ST_LSM6DSL_DEV_NAME, ST_LSM6DSL_ID },
|
||||
{ ST_LSM6DSM_DEV_NAME, ST_LSM6DSM_ID },
|
||||
{ ST_ISM330DLC_DEV_NAME, ST_ISM330DLC_ID },
|
||||
{ ST_LSM6DSO_DEV_NAME, ST_LSM6DSO_ID },
|
||||
{ ST_ASM330LHH_DEV_NAME, ST_ASM330LHH_ID },
|
||||
{ ST_LSM6DSOX_DEV_NAME, ST_LSM6DSOX_ID },
|
||||
{ ST_LSM6DSR_DEV_NAME, ST_LSM6DSR_ID },
|
||||
{ ST_LSM6DS3TRC_DEV_NAME, ST_LSM6DS3TRC_ID },
|
||||
{ ST_ISM330DHCX_DEV_NAME, ST_ISM330DHCX_ID },
|
||||
{ ST_LSM9DS1_DEV_NAME, ST_LSM9DS1_ID },
|
||||
{ ST_LSM6DS0_DEV_NAME, ST_LSM6DS0_ID },
|
||||
{ ST_LSM6DSRX_DEV_NAME, ST_LSM6DSRX_ID },
|
||||
{ ST_LSM6DST_DEV_NAME, ST_LSM6DST_ID },
|
||||
{ ST_LSM6DSOP_DEV_NAME, ST_LSM6DSOP_ID },
|
||||
{ ST_ASM330LHHX_DEV_NAME, ST_ASM330LHHX_ID },
|
||||
{ ST_LSM6DSTX_DEV_NAME, ST_LSM6DSTX_ID },
|
||||
{ ST_LSM6DSV_DEV_NAME, ST_LSM6DSV_ID },
|
||||
{ ST_LSM6DSV16X_DEV_NAME, ST_LSM6DSV16X_ID },
|
||||
{ ST_LSM6DSO16IS_DEV_NAME, ST_LSM6DSO16IS_ID },
|
||||
{ ST_ISM330IS_DEV_NAME, ST_ISM330IS_ID },
|
||||
{ ST_ASM330LHB_DEV_NAME, ST_ASM330LHB_ID },
|
||||
{ ST_ASM330LHHXG1_DEV_NAME, ST_ASM330LHHXG1_ID },
|
||||
{ .name = ST_LSM6DS3_DEV_NAME, .driver_data = ST_LSM6DS3_ID },
|
||||
{ .name = ST_LSM6DS3H_DEV_NAME, .driver_data = ST_LSM6DS3H_ID },
|
||||
{ .name = ST_LSM6DSL_DEV_NAME, .driver_data = ST_LSM6DSL_ID },
|
||||
{ .name = ST_LSM6DSM_DEV_NAME, .driver_data = ST_LSM6DSM_ID },
|
||||
{ .name = ST_ISM330DLC_DEV_NAME, .driver_data = ST_ISM330DLC_ID },
|
||||
{ .name = ST_LSM6DSO_DEV_NAME, .driver_data = ST_LSM6DSO_ID },
|
||||
{ .name = ST_ASM330LHH_DEV_NAME, .driver_data = ST_ASM330LHH_ID },
|
||||
{ .name = ST_LSM6DSOX_DEV_NAME, .driver_data = ST_LSM6DSOX_ID },
|
||||
{ .name = ST_LSM6DSR_DEV_NAME, .driver_data = ST_LSM6DSR_ID },
|
||||
{ .name = ST_LSM6DS3TRC_DEV_NAME, .driver_data = ST_LSM6DS3TRC_ID },
|
||||
{ .name = ST_ISM330DHCX_DEV_NAME, .driver_data = ST_ISM330DHCX_ID },
|
||||
{ .name = ST_LSM9DS1_DEV_NAME, .driver_data = ST_LSM9DS1_ID },
|
||||
{ .name = ST_LSM6DS0_DEV_NAME, .driver_data = ST_LSM6DS0_ID },
|
||||
{ .name = ST_LSM6DSRX_DEV_NAME, .driver_data = ST_LSM6DSRX_ID },
|
||||
{ .name = ST_LSM6DST_DEV_NAME, .driver_data = ST_LSM6DST_ID },
|
||||
{ .name = ST_LSM6DSOP_DEV_NAME, .driver_data = ST_LSM6DSOP_ID },
|
||||
{ .name = ST_ASM330LHHX_DEV_NAME, .driver_data = ST_ASM330LHHX_ID },
|
||||
{ .name = ST_LSM6DSTX_DEV_NAME, .driver_data = ST_LSM6DSTX_ID },
|
||||
{ .name = ST_LSM6DSV_DEV_NAME, .driver_data = ST_LSM6DSV_ID },
|
||||
{ .name = ST_LSM6DSV16X_DEV_NAME, .driver_data = ST_LSM6DSV16X_ID },
|
||||
{ .name = ST_LSM6DSO16IS_DEV_NAME, .driver_data = ST_LSM6DSO16IS_ID },
|
||||
{ .name = ST_ISM330IS_DEV_NAME, .driver_data = ST_ISM330IS_ID },
|
||||
{ .name = ST_ASM330LHB_DEV_NAME, .driver_data = ST_ASM330LHB_ID },
|
||||
{ .name = ST_ASM330LHHXG1_DEV_NAME, .driver_data = ST_ASM330LHHXG1_ID },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st_lsm6dsx_i2c_id_table);
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ static const struct of_device_id st_lsm9ds0_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, st_lsm9ds0_of_match);
|
||||
|
||||
static const struct i2c_device_id st_lsm9ds0_id_table[] = {
|
||||
{ LSM303D_IMU_DEV_NAME },
|
||||
{ LSM9DS0_IMU_DEV_NAME },
|
||||
{ .name = LSM303D_IMU_DEV_NAME },
|
||||
{ .name = LSM9DS0_IMU_DEV_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st_lsm9ds0_id_table);
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ static int adjd_s311_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adjd_s311_id[] = {
|
||||
{ "adjd_s311" },
|
||||
{ .name = "adjd_s311" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adjd_s311_id);
|
||||
|
|
|
|||
|
|
@ -818,7 +818,7 @@ static int adux1020_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id adux1020_id[] = {
|
||||
{ "adux1020" },
|
||||
{ .name = "adux1020" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adux1020_id);
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user