mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
iio: normalize array sentinel style
Use `\t(\{ ?\},|\{\}|\{\s*/\*.*\*/\s*\},?)$` regex to find and replace the array sentinel in all IIO drivers to the same style. For some time, we've been trying to consistently use `{ }` (no trailing comma, no comment, one space between braces) for array sentinels in the IIO subsystem. Still nearly 50% of existing code uses a different style. To save reviewers from having to request this trivial change as frequently, let's normalize the style in all existing IIO drivers. At least when code is copy/pasted to new drivers, the style will be consistent. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://patch.msgid.link/20250411-iio-sentinel-normalization-v1-1-d293de3e3d93@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
ef24ea86ef
commit
70788d26ae
@ -68,7 +68,7 @@ MODULE_DEVICE_TABLE(i2c, adxl367_i2c_id);
|
|||||||
|
|
||||||
static const struct of_device_id adxl367_of_match[] = {
|
static const struct of_device_id adxl367_of_match[] = {
|
||||||
{ .compatible = "adi,adxl367" },
|
{ .compatible = "adi,adxl367" },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, adxl367_of_match);
|
MODULE_DEVICE_TABLE(of, adxl367_of_match);
|
||||||
|
|
||||||
|
@ -139,13 +139,13 @@ static int adxl367_spi_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id adxl367_spi_id[] = {
|
static const struct spi_device_id adxl367_spi_id[] = {
|
||||||
{ "adxl367", 0 },
|
{ "adxl367", 0 },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, adxl367_spi_id);
|
MODULE_DEVICE_TABLE(spi, adxl367_spi_id);
|
||||||
|
|
||||||
static const struct of_device_id adxl367_of_match[] = {
|
static const struct of_device_id adxl367_of_match[] = {
|
||||||
{ .compatible = "adi,adxl367" },
|
{ .compatible = "adi,adxl367" },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, adxl367_of_match);
|
MODULE_DEVICE_TABLE(of, adxl367_of_match);
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ static int adxl372_i2c_probe(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct i2c_device_id adxl372_i2c_id[] = {
|
static const struct i2c_device_id adxl372_i2c_id[] = {
|
||||||
{ "adxl372" },
|
{ "adxl372" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, adxl372_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, adxl372_i2c_id);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ static int adxl372_spi_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id adxl372_spi_id[] = {
|
static const struct spi_device_id adxl372_spi_id[] = {
|
||||||
{ "adxl372", 0 },
|
{ "adxl372", 0 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, adxl372_spi_id);
|
MODULE_DEVICE_TABLE(spi, adxl372_spi_id);
|
||||||
|
|
||||||
|
@ -307,12 +307,12 @@ static DEFINE_SIMPLE_DEV_PM_OPS(bma220_pm_ops, bma220_suspend, bma220_resume);
|
|||||||
|
|
||||||
static const struct spi_device_id bma220_spi_id[] = {
|
static const struct spi_device_id bma220_spi_id[] = {
|
||||||
{"bma220", 0},
|
{"bma220", 0},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct acpi_device_id bma220_acpi_id[] = {
|
static const struct acpi_device_id bma220_acpi_id[] = {
|
||||||
{"BMA0220", 0},
|
{"BMA0220", 0},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, bma220_spi_id);
|
MODULE_DEVICE_TABLE(spi, bma220_spi_id);
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
|
|||||||
{"BOSC0200"},
|
{"BOSC0200"},
|
||||||
{"BSBA0150"},
|
{"BSBA0150"},
|
||||||
{"DUAL250E"},
|
{"DUAL250E"},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ static const struct i2c_device_id bmc150_accel_id[] = {
|
|||||||
{"bmc150_accel"},
|
{"bmc150_accel"},
|
||||||
{"bmc156_accel", BOSCH_BMC156},
|
{"bmc156_accel", BOSCH_BMC156},
|
||||||
{"bmi055_accel"},
|
{"bmi055_accel"},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, bmc150_accel_id);
|
MODULE_DEVICE_TABLE(i2c, bmc150_accel_id);
|
||||||
@ -271,7 +271,7 @@ static const struct of_device_id bmc150_accel_of_match[] = {
|
|||||||
{ .compatible = "bosch,bmc150_accel" },
|
{ .compatible = "bosch,bmc150_accel" },
|
||||||
{ .compatible = "bosch,bmc156_accel" },
|
{ .compatible = "bosch,bmc156_accel" },
|
||||||
{ .compatible = "bosch,bmi055_accel" },
|
{ .compatible = "bosch,bmi055_accel" },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, bmc150_accel_of_match);
|
MODULE_DEVICE_TABLE(of, bmc150_accel_of_match);
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
|
|||||||
{"BMC150A"},
|
{"BMC150A"},
|
||||||
{"BMI055A"},
|
{"BMI055A"},
|
||||||
{"BSBA0150"},
|
{"BSBA0150"},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ static const struct spi_device_id bmc150_accel_id[] = {
|
|||||||
{"bmc150_accel"},
|
{"bmc150_accel"},
|
||||||
{"bmc156_accel", BOSCH_BMC156},
|
{"bmc156_accel", BOSCH_BMC156},
|
||||||
{"bmi055_accel"},
|
{"bmi055_accel"},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, bmc150_accel_id);
|
MODULE_DEVICE_TABLE(spi, bmc150_accel_id);
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ static const struct of_device_id bmi088_of_match[] = {
|
|||||||
{ .compatible = "bosch,bmi085-accel" },
|
{ .compatible = "bosch,bmi085-accel" },
|
||||||
{ .compatible = "bosch,bmi088-accel" },
|
{ .compatible = "bosch,bmi088-accel" },
|
||||||
{ .compatible = "bosch,bmi090l-accel" },
|
{ .compatible = "bosch,bmi090l-accel" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, bmi088_of_match);
|
MODULE_DEVICE_TABLE(of, bmi088_of_match);
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ static const struct i2c_device_id bmi088_accel_id[] = {
|
|||||||
{ "bmi085-accel", BOSCH_BMI085 },
|
{ "bmi085-accel", BOSCH_BMI085 },
|
||||||
{ "bmi088-accel", BOSCH_BMI088 },
|
{ "bmi088-accel", BOSCH_BMI088 },
|
||||||
{ "bmi090l-accel", BOSCH_BMI090L },
|
{ "bmi090l-accel", BOSCH_BMI090L },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, bmi088_accel_id);
|
MODULE_DEVICE_TABLE(i2c, bmi088_accel_id);
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ static const struct of_device_id bmi088_of_match[] = {
|
|||||||
{ .compatible = "bosch,bmi085-accel" },
|
{ .compatible = "bosch,bmi085-accel" },
|
||||||
{ .compatible = "bosch,bmi088-accel" },
|
{ .compatible = "bosch,bmi088-accel" },
|
||||||
{ .compatible = "bosch,bmi090l-accel" },
|
{ .compatible = "bosch,bmi090l-accel" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, bmi088_of_match);
|
MODULE_DEVICE_TABLE(of, bmi088_of_match);
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ static const struct spi_device_id bmi088_accel_id[] = {
|
|||||||
{"bmi085-accel", BOSCH_BMI085},
|
{"bmi085-accel", BOSCH_BMI085},
|
||||||
{"bmi088-accel", BOSCH_BMI088},
|
{"bmi088-accel", BOSCH_BMI088},
|
||||||
{"bmi090l-accel", BOSCH_BMI090L},
|
{"bmi090l-accel", BOSCH_BMI090L},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, bmi088_accel_id);
|
MODULE_DEVICE_TABLE(spi, bmi088_accel_id);
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ static const struct da280_match_data da280_match_data = { "da280", 3 };
|
|||||||
static const struct acpi_device_id da280_acpi_match[] = {
|
static const struct acpi_device_id da280_acpi_match[] = {
|
||||||
{ "NSA2513", (kernel_ulong_t)&da217_match_data },
|
{ "NSA2513", (kernel_ulong_t)&da217_match_data },
|
||||||
{ "MIRAACC", (kernel_ulong_t)&da280_match_data },
|
{ "MIRAACC", (kernel_ulong_t)&da280_match_data },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, da280_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, da280_acpi_match);
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ static const struct i2c_device_id da280_i2c_id[] = {
|
|||||||
{ "da217", (kernel_ulong_t)&da217_match_data },
|
{ "da217", (kernel_ulong_t)&da217_match_data },
|
||||||
{ "da226", (kernel_ulong_t)&da226_match_data },
|
{ "da226", (kernel_ulong_t)&da226_match_data },
|
||||||
{ "da280", (kernel_ulong_t)&da280_match_data },
|
{ "da280", (kernel_ulong_t)&da280_match_data },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, da280_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, da280_i2c_id);
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume);
|
|||||||
|
|
||||||
static const struct i2c_device_id da311_i2c_id[] = {
|
static const struct i2c_device_id da311_i2c_id[] = {
|
||||||
{ "da311" },
|
{ "da311" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, da311_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, da311_i2c_id);
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard10_pm_ops, dmard10_suspend,
|
|||||||
|
|
||||||
static const struct i2c_device_id dmard10_i2c_id[] = {
|
static const struct i2c_device_id dmard10_i2c_id[] = {
|
||||||
{ "dmard10" },
|
{ "dmard10" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, dmard10_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, dmard10_i2c_id);
|
||||||
|
|
||||||
|
@ -32,14 +32,14 @@ static const struct i2c_device_id fxls8962af_id[] = {
|
|||||||
{ "fxls8964af", fxls8964af },
|
{ "fxls8964af", fxls8964af },
|
||||||
{ "fxls8967af", fxls8967af },
|
{ "fxls8967af", fxls8967af },
|
||||||
{ "fxls8974cf", fxls8974cf },
|
{ "fxls8974cf", fxls8974cf },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
|
MODULE_DEVICE_TABLE(i2c, fxls8962af_id);
|
||||||
|
|
||||||
static const struct of_device_id fxls8962af_of_match[] = {
|
static const struct of_device_id fxls8962af_of_match[] = {
|
||||||
{ .compatible = "nxp,fxls8962af" },
|
{ .compatible = "nxp,fxls8962af" },
|
||||||
{ .compatible = "nxp,fxls8964af" },
|
{ .compatible = "nxp,fxls8964af" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, fxls8962af_of_match);
|
MODULE_DEVICE_TABLE(of, fxls8962af_of_match);
|
||||||
|
|
||||||
|
@ -30,14 +30,14 @@ static int fxls8962af_probe(struct spi_device *spi)
|
|||||||
static const struct of_device_id fxls8962af_spi_of_match[] = {
|
static const struct of_device_id fxls8962af_spi_of_match[] = {
|
||||||
{ .compatible = "nxp,fxls8962af" },
|
{ .compatible = "nxp,fxls8962af" },
|
||||||
{ .compatible = "nxp,fxls8964af" },
|
{ .compatible = "nxp,fxls8964af" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, fxls8962af_spi_of_match);
|
MODULE_DEVICE_TABLE(of, fxls8962af_spi_of_match);
|
||||||
|
|
||||||
static const struct spi_device_id fxls8962af_spi_id_table[] = {
|
static const struct spi_device_id fxls8962af_spi_id_table[] = {
|
||||||
{ "fxls8962af", fxls8962af },
|
{ "fxls8962af", fxls8962af },
|
||||||
{ "fxls8964af", fxls8964af },
|
{ "fxls8964af", fxls8964af },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, fxls8962af_spi_id_table);
|
MODULE_DEVICE_TABLE(spi, fxls8962af_spi_id_table);
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ static const struct platform_device_id hid_accel_3d_ids[] = {
|
|||||||
{ /* gravity sensor */
|
{ /* gravity sensor */
|
||||||
.name = "HID-SENSOR-20007b",
|
.name = "HID-SENSOR-20007b",
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, hid_accel_3d_ids);
|
MODULE_DEVICE_TABLE(platform, hid_accel_3d_ids);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static void kxsd9_i2c_remove(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct of_device_id kxsd9_of_match[] = {
|
static const struct of_device_id kxsd9_of_match[] = {
|
||||||
{ .compatible = "kionix,kxsd9", },
|
{ .compatible = "kionix,kxsd9", },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, kxsd9_of_match);
|
MODULE_DEVICE_TABLE(of, kxsd9_of_match);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static void kxsd9_spi_remove(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id kxsd9_spi_id[] = {
|
static const struct spi_device_id kxsd9_spi_id[] = {
|
||||||
{"kxsd9", 0},
|
{"kxsd9", 0},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, kxsd9_spi_id);
|
MODULE_DEVICE_TABLE(spi, kxsd9_spi_id);
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ kxsd9_get_mount_matrix(const struct iio_dev *indio_dev,
|
|||||||
|
|
||||||
static const struct iio_chan_spec_ext_info kxsd9_ext_info[] = {
|
static const struct iio_chan_spec_ext_info kxsd9_ext_info[] = {
|
||||||
IIO_MOUNT_MATRIX(IIO_SHARED_BY_TYPE, kxsd9_get_mount_matrix),
|
IIO_MOUNT_MATRIX(IIO_SHARED_BY_TYPE, kxsd9_get_mount_matrix),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define KXSD9_ACCEL_CHAN(axis, index) \
|
#define KXSD9_ACCEL_CHAN(axis, index) \
|
||||||
|
@ -262,7 +262,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(mma7660_pm_ops, mma7660_suspend,
|
|||||||
|
|
||||||
static const struct i2c_device_id mma7660_i2c_id[] = {
|
static const struct i2c_device_id mma7660_i2c_id[] = {
|
||||||
{ "mma7660" },
|
{ "mma7660" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, mma7660_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, mma7660_i2c_id);
|
||||||
|
|
||||||
@ -274,7 +274,7 @@ MODULE_DEVICE_TABLE(of, mma7660_of_match);
|
|||||||
|
|
||||||
static const struct acpi_device_id mma7660_acpi_id[] = {
|
static const struct acpi_device_id mma7660_acpi_id[] = {
|
||||||
{"MMA7660", 0},
|
{"MMA7660", 0},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(acpi, mma7660_acpi_id);
|
MODULE_DEVICE_TABLE(acpi, mma7660_acpi_id);
|
||||||
|
@ -578,14 +578,14 @@ static const struct dev_pm_ops mma9551_pm_ops = {
|
|||||||
|
|
||||||
static const struct acpi_device_id mma9551_acpi_match[] = {
|
static const struct acpi_device_id mma9551_acpi_match[] = {
|
||||||
{"MMA9551", 0},
|
{"MMA9551", 0},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(acpi, mma9551_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, mma9551_acpi_match);
|
||||||
|
|
||||||
static const struct i2c_device_id mma9551_id[] = {
|
static const struct i2c_device_id mma9551_id[] = {
|
||||||
{ "mma9551" },
|
{ "mma9551" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, mma9551_id);
|
MODULE_DEVICE_TABLE(i2c, mma9551_id);
|
||||||
|
@ -919,7 +919,7 @@ static const struct iio_enum mma9553_calibgender_enum = {
|
|||||||
static const struct iio_chan_spec_ext_info mma9553_ext_info[] = {
|
static const struct iio_chan_spec_ext_info mma9553_ext_info[] = {
|
||||||
IIO_ENUM("calibgender", IIO_SHARED_BY_TYPE, &mma9553_calibgender_enum),
|
IIO_ENUM("calibgender", IIO_SHARED_BY_TYPE, &mma9553_calibgender_enum),
|
||||||
IIO_ENUM_AVAILABLE("calibgender", IIO_SHARED_BY_TYPE, &mma9553_calibgender_enum),
|
IIO_ENUM_AVAILABLE("calibgender", IIO_SHARED_BY_TYPE, &mma9553_calibgender_enum),
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MMA9553_PEDOMETER_CHANNEL(_type, _mask) { \
|
#define MMA9553_PEDOMETER_CHANNEL(_type, _mask) { \
|
||||||
@ -1216,14 +1216,14 @@ static const struct dev_pm_ops mma9553_pm_ops = {
|
|||||||
|
|
||||||
static const struct acpi_device_id mma9553_acpi_match[] = {
|
static const struct acpi_device_id mma9553_acpi_match[] = {
|
||||||
{"MMA9553", 0},
|
{"MMA9553", 0},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(acpi, mma9553_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, mma9553_acpi_match);
|
||||||
|
|
||||||
static const struct i2c_device_id mma9553_id[] = {
|
static const struct i2c_device_id mma9553_id[] = {
|
||||||
{ "mma9553" },
|
{ "mma9553" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, mma9553_id);
|
MODULE_DEVICE_TABLE(i2c, mma9553_id);
|
||||||
|
@ -573,14 +573,14 @@ static const struct acpi_device_id mxc4005_acpi_match[] = {
|
|||||||
{"MXC4005", 0},
|
{"MXC4005", 0},
|
||||||
{"MXC6655", 0},
|
{"MXC6655", 0},
|
||||||
{"MDA6655", 0},
|
{"MDA6655", 0},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, mxc4005_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, mxc4005_acpi_match);
|
||||||
|
|
||||||
static const struct of_device_id mxc4005_of_match[] = {
|
static const struct of_device_id mxc4005_of_match[] = {
|
||||||
{ .compatible = "memsic,mxc4005", },
|
{ .compatible = "memsic,mxc4005", },
|
||||||
{ .compatible = "memsic,mxc6655", },
|
{ .compatible = "memsic,mxc6655", },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mxc4005_of_match);
|
MODULE_DEVICE_TABLE(of, mxc4005_of_match);
|
||||||
|
|
||||||
|
@ -1541,7 +1541,7 @@ static const struct spi_device_id sca3000_id[] = {
|
|||||||
{"sca3000_e02", e02},
|
{"sca3000_e02", e02},
|
||||||
{"sca3000_e04", e04},
|
{"sca3000_e04", e04},
|
||||||
{"sca3000_e05", e05},
|
{"sca3000_e05", e05},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, sca3000_id);
|
MODULE_DEVICE_TABLE(spi, sca3000_id);
|
||||||
|
|
||||||
|
@ -674,14 +674,14 @@ static int sca3300_probe(struct spi_device *spi)
|
|||||||
static const struct of_device_id sca3300_dt_ids[] = {
|
static const struct of_device_id sca3300_dt_ids[] = {
|
||||||
{ .compatible = "murata,sca3300"},
|
{ .compatible = "murata,sca3300"},
|
||||||
{ .compatible = "murata,scl3300"},
|
{ .compatible = "murata,scl3300"},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, sca3300_dt_ids);
|
MODULE_DEVICE_TABLE(of, sca3300_dt_ids);
|
||||||
|
|
||||||
static const struct spi_device_id sca3300_ids[] = {
|
static const struct spi_device_id sca3300_ids[] = {
|
||||||
{ "sca3300" },
|
{ "sca3300" },
|
||||||
{ "scl3300" },
|
{ "scl3300" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, sca3300_ids);
|
MODULE_DEVICE_TABLE(spi, sca3300_ids);
|
||||||
|
|
||||||
|
@ -126,14 +126,14 @@ static const struct of_device_id st_accel_of_match[] = {
|
|||||||
.compatible = "st,iis328dq",
|
.compatible = "st,iis328dq",
|
||||||
.data = IIS328DQ_ACCEL_DEV_NAME,
|
.data = IIS328DQ_ACCEL_DEV_NAME,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, st_accel_of_match);
|
MODULE_DEVICE_TABLE(of, st_accel_of_match);
|
||||||
|
|
||||||
static const struct acpi_device_id st_accel_acpi_match[] = {
|
static const struct acpi_device_id st_accel_acpi_match[] = {
|
||||||
{"SMO8840", (kernel_ulong_t)LIS2DH12_ACCEL_DEV_NAME},
|
{"SMO8840", (kernel_ulong_t)LIS2DH12_ACCEL_DEV_NAME},
|
||||||
{"SMO8A90", (kernel_ulong_t)LNG2DM_ACCEL_DEV_NAME},
|
{"SMO8A90", (kernel_ulong_t)LNG2DM_ACCEL_DEV_NAME},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, st_accel_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, st_accel_acpi_match);
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ static const struct i2c_device_id st_accel_id_table[] = {
|
|||||||
{ LSM303C_ACCEL_DEV_NAME },
|
{ LSM303C_ACCEL_DEV_NAME },
|
||||||
{ SC7A20_ACCEL_DEV_NAME },
|
{ SC7A20_ACCEL_DEV_NAME },
|
||||||
{ IIS328DQ_ACCEL_DEV_NAME },
|
{ IIS328DQ_ACCEL_DEV_NAME },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
|
MODULE_DEVICE_TABLE(i2c, st_accel_id_table);
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ static const struct of_device_id st_accel_of_match[] = {
|
|||||||
.compatible = "st,iis328dq",
|
.compatible = "st,iis328dq",
|
||||||
.data = IIS328DQ_ACCEL_DEV_NAME,
|
.data = IIS328DQ_ACCEL_DEV_NAME,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, st_accel_of_match);
|
MODULE_DEVICE_TABLE(of, st_accel_of_match);
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ static const struct spi_device_id st_accel_id_table[] = {
|
|||||||
{ LIS302DL_ACCEL_DEV_NAME },
|
{ LIS302DL_ACCEL_DEV_NAME },
|
||||||
{ LSM303C_ACCEL_DEV_NAME },
|
{ LSM303C_ACCEL_DEV_NAME },
|
||||||
{ IIS328DQ_ACCEL_DEV_NAME },
|
{ IIS328DQ_ACCEL_DEV_NAME },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, st_accel_id_table);
|
MODULE_DEVICE_TABLE(spi, st_accel_id_table);
|
||||||
|
|
||||||
|
@ -635,7 +635,7 @@ static const struct i2c_device_id stk8312_i2c_id[] = {
|
|||||||
/* Deprecated in favour of lowercase form */
|
/* Deprecated in favour of lowercase form */
|
||||||
{ "STK8312" },
|
{ "STK8312" },
|
||||||
{ "stk8312" },
|
{ "stk8312" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, stk8312_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, stk8312_i2c_id);
|
||||||
|
|
||||||
|
@ -526,13 +526,13 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stk8ba50_pm_ops, stk8ba50_suspend,
|
|||||||
|
|
||||||
static const struct i2c_device_id stk8ba50_i2c_id[] = {
|
static const struct i2c_device_id stk8ba50_i2c_id[] = {
|
||||||
{ "stk8ba50" },
|
{ "stk8ba50" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, stk8ba50_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, stk8ba50_i2c_id);
|
||||||
|
|
||||||
static const struct acpi_device_id stk8ba50_acpi_id[] = {
|
static const struct acpi_device_id stk8ba50_acpi_id[] = {
|
||||||
{"STK8BA50", 0},
|
{"STK8BA50", 0},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(acpi, stk8ba50_acpi_id);
|
MODULE_DEVICE_TABLE(acpi, stk8ba50_acpi_id);
|
||||||
|
@ -572,7 +572,7 @@ static const struct iio_chan_spec_ext_info ad7280_cell_ext_info[] = {
|
|||||||
.write = ad7280_store_balance_timer,
|
.write = ad7280_store_balance_timer,
|
||||||
.shared = IIO_SEPARATE,
|
.shared = IIO_SEPARATE,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_event_spec ad7280_events[] = {
|
static const struct iio_event_spec ad7280_events[] = {
|
||||||
|
@ -736,7 +736,7 @@ static int ad7768_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id ad7768_id_table[] = {
|
static const struct spi_device_id ad7768_id_table[] = {
|
||||||
{ "ad7768-1", 0 },
|
{ "ad7768-1", 0 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad7768_id_table);
|
MODULE_DEVICE_TABLE(spi, ad7768_id_table);
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ static const struct spi_device_id ad7791_spi_ids[] = {
|
|||||||
{ "ad7789", AD7789 },
|
{ "ad7789", AD7789 },
|
||||||
{ "ad7790", AD7790 },
|
{ "ad7790", AD7790 },
|
||||||
{ "ad7791", AD7791 },
|
{ "ad7791", AD7791 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad7791_spi_ids);
|
MODULE_DEVICE_TABLE(spi, ad7791_spi_ids);
|
||||||
|
|
||||||
|
@ -958,7 +958,7 @@ static const struct i2c_device_id ad799x_id[] = {
|
|||||||
{ "ad7994", ad7994 },
|
{ "ad7994", ad7994 },
|
||||||
{ "ad7997", ad7997 },
|
{ "ad7997", ad7997 },
|
||||||
{ "ad7998", ad7998 },
|
{ "ad7998", ad7998 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, ad799x_id);
|
MODULE_DEVICE_TABLE(i2c, ad799x_id);
|
||||||
|
@ -702,7 +702,7 @@ static const struct of_device_id adi_axi_adc_of_match[] = {
|
|||||||
{ .compatible = "adi,axi-adc-10.0.a", .data = &adc_generic },
|
{ .compatible = "adi,axi-adc-10.0.a", .data = &adc_generic },
|
||||||
{ .compatible = "adi,axi-ad485x", .data = &adi_axi_ad485x },
|
{ .compatible = "adi,axi-ad485x", .data = &adi_axi_ad485x },
|
||||||
{ .compatible = "adi,axi-ad7606x", .data = &adc_ad7606 },
|
{ .compatible = "adi,axi-ad7606x", .data = &adc_ad7606 },
|
||||||
{ /* end of list */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, adi_axi_adc_of_match);
|
MODULE_DEVICE_TABLE(of, adi_axi_adc_of_match);
|
||||||
|
|
||||||
|
@ -163,14 +163,14 @@ static const struct iio_map axp20x_maps[] = {
|
|||||||
IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"),
|
IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"),
|
||||||
IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"),
|
IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"),
|
||||||
IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"),
|
IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"),
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_map axp22x_maps[] = {
|
static const struct iio_map axp22x_maps[] = {
|
||||||
IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"),
|
IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"),
|
||||||
IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"),
|
IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"),
|
||||||
IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"),
|
IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"),
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct iio_map axp717_maps[] = {
|
static struct iio_map axp717_maps[] = {
|
||||||
@ -1074,7 +1074,7 @@ static const struct of_device_id axp20x_adc_of_match[] = {
|
|||||||
{ .compatible = "x-powers,axp221-adc", .data = (void *)&axp22x_data, },
|
{ .compatible = "x-powers,axp221-adc", .data = (void *)&axp22x_data, },
|
||||||
{ .compatible = "x-powers,axp717-adc", .data = (void *)&axp717_data, },
|
{ .compatible = "x-powers,axp717-adc", .data = (void *)&axp717_data, },
|
||||||
{ .compatible = "x-powers,axp813-adc", .data = (void *)&axp813_data, },
|
{ .compatible = "x-powers,axp813-adc", .data = (void *)&axp813_data, },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, axp20x_adc_of_match);
|
MODULE_DEVICE_TABLE(of, axp20x_adc_of_match);
|
||||||
|
|
||||||
@ -1084,7 +1084,7 @@ static const struct platform_device_id axp20x_adc_id_match[] = {
|
|||||||
{ .name = "axp22x-adc", .driver_data = (kernel_ulong_t)&axp22x_data, },
|
{ .name = "axp22x-adc", .driver_data = (kernel_ulong_t)&axp22x_data, },
|
||||||
{ .name = "axp717-adc", .driver_data = (kernel_ulong_t)&axp717_data, },
|
{ .name = "axp717-adc", .driver_data = (kernel_ulong_t)&axp717_data, },
|
||||||
{ .name = "axp813-adc", .driver_data = (kernel_ulong_t)&axp813_data, },
|
{ .name = "axp813-adc", .driver_data = (kernel_ulong_t)&axp813_data, },
|
||||||
{ /* sentinel */ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, axp20x_adc_id_match);
|
MODULE_DEVICE_TABLE(platform, axp20x_adc_id_match);
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ static const struct iio_map axp288_adc_default_maps[] = {
|
|||||||
IIO_MAP("BATT_CHG_I", "axp288-chrg", "axp288-chrg-curr"),
|
IIO_MAP("BATT_CHG_I", "axp288-chrg", "axp288-chrg-curr"),
|
||||||
IIO_MAP("BATT_DISCHRG_I", "axp288-chrg", "axp288-chrg-d-curr"),
|
IIO_MAP("BATT_DISCHRG_I", "axp288-chrg", "axp288-chrg-d-curr"),
|
||||||
IIO_MAP("BATT_V", "axp288-batt", "axp288-batt-volt"),
|
IIO_MAP("BATT_V", "axp288-batt", "axp288-batt-volt"),
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int axp288_adc_read_channel(int *val, unsigned long address,
|
static int axp288_adc_read_channel(int *val, unsigned long address,
|
||||||
@ -207,7 +207,7 @@ static const struct dmi_system_id axp288_adc_ts_bias_override[] = {
|
|||||||
},
|
},
|
||||||
.driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA,
|
.driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int axp288_adc_initialize(struct axp288_adc_info *info)
|
static int axp288_adc_initialize(struct axp288_adc_info *info)
|
||||||
|
@ -942,7 +942,7 @@ static const struct of_device_id cpcap_adc_id_table[] = {
|
|||||||
.compatible = "motorola,mapphone-cpcap-adc",
|
.compatible = "motorola,mapphone-cpcap-adc",
|
||||||
.data = &mapphone_adc,
|
.data = &mapphone_adc,
|
||||||
},
|
},
|
||||||
{ /* sentinel */ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, cpcap_adc_id_table);
|
MODULE_DEVICE_TABLE(of, cpcap_adc_id_table);
|
||||||
|
|
||||||
|
@ -296,7 +296,7 @@ static const struct iio_map da9150_gpadc_default_maps[] = {
|
|||||||
IIO_MAP("VBUS", "da9150-charger", "CHAN_VBUS"),
|
IIO_MAP("VBUS", "da9150-charger", "CHAN_VBUS"),
|
||||||
IIO_MAP("TJUNC_CORE", "da9150-charger", "CHAN_TJUNC"),
|
IIO_MAP("TJUNC_CORE", "da9150-charger", "CHAN_TJUNC"),
|
||||||
IIO_MAP("VBAT", "da9150-charger", "CHAN_VBAT"),
|
IIO_MAP("VBAT", "da9150-charger", "CHAN_VBAT"),
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int da9150_gpadc_probe(struct platform_device *pdev)
|
static int da9150_gpadc_probe(struct platform_device *pdev)
|
||||||
|
@ -305,7 +305,7 @@ static const struct iio_chan_spec_ext_info envelope_detector_ext_info[] = {
|
|||||||
{ .name = "compare_interval",
|
{ .name = "compare_interval",
|
||||||
.read = envelope_show_comp_interval,
|
.read = envelope_show_comp_interval,
|
||||||
.write = envelope_store_comp_interval, },
|
.write = envelope_store_comp_interval, },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_chan_spec envelope_detector_iio_channel = {
|
static const struct iio_chan_spec envelope_detector_iio_channel = {
|
||||||
@ -390,7 +390,7 @@ static int envelope_detector_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id envelope_detector_match[] = {
|
static const struct of_device_id envelope_detector_match[] = {
|
||||||
{ .compatible = "axentia,tse850-envelope-detector", },
|
{ .compatible = "axentia,tse850-envelope-detector", },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, envelope_detector_match);
|
MODULE_DEVICE_TABLE(of, envelope_detector_match);
|
||||||
|
|
||||||
|
@ -372,7 +372,7 @@ static int mx25_gcq_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id mx25_gcq_ids[] = {
|
static const struct of_device_id mx25_gcq_ids[] = {
|
||||||
{ .compatible = "fsl,imx25-gcq", },
|
{ .compatible = "fsl,imx25-gcq", },
|
||||||
{ /* Sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mx25_gcq_ids);
|
MODULE_DEVICE_TABLE(of, mx25_gcq_ids);
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ static const struct iio_enum hi8435_sensing_mode = {
|
|||||||
static const struct iio_chan_spec_ext_info hi8435_ext_info[] = {
|
static const struct iio_chan_spec_ext_info hi8435_ext_info[] = {
|
||||||
IIO_ENUM("sensing_mode", IIO_SEPARATE, &hi8435_sensing_mode),
|
IIO_ENUM("sensing_mode", IIO_SEPARATE, &hi8435_sensing_mode),
|
||||||
IIO_ENUM_AVAILABLE("sensing_mode", IIO_SHARED_BY_TYPE, &hi8435_sensing_mode),
|
IIO_ENUM_AVAILABLE("sensing_mode", IIO_SHARED_BY_TYPE, &hi8435_sensing_mode),
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HI8435_VOLTAGE_CHANNEL(num) \
|
#define HI8435_VOLTAGE_CHANNEL(num) \
|
||||||
|
@ -413,7 +413,7 @@ static const struct iio_info imx7d_adc_iio_info = {
|
|||||||
|
|
||||||
static const struct of_device_id imx7d_adc_match[] = {
|
static const struct of_device_id imx7d_adc_match[] = {
|
||||||
{ .compatible = "fsl,imx7d-adc", },
|
{ .compatible = "fsl,imx7d-adc", },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, imx7d_adc_match);
|
MODULE_DEVICE_TABLE(of, imx7d_adc_match);
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(imx8qxp_adc_pm_ops,
|
|||||||
|
|
||||||
static const struct of_device_id imx8qxp_adc_match[] = {
|
static const struct of_device_id imx8qxp_adc_match[] = {
|
||||||
{ .compatible = "nxp,imx8qxp-adc", },
|
{ .compatible = "nxp,imx8qxp-adc", },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, imx8qxp_adc_match);
|
MODULE_DEVICE_TABLE(of, imx8qxp_adc_match);
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(imx93_adc_pm_ops,
|
|||||||
|
|
||||||
static const struct of_device_id imx93_adc_match[] = {
|
static const struct of_device_id imx93_adc_match[] = {
|
||||||
{ .compatible = "nxp,imx93-adc", },
|
{ .compatible = "nxp,imx93-adc", },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, imx93_adc_match);
|
MODULE_DEVICE_TABLE(of, imx93_adc_match);
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ static const struct iio_map iio_maps[] = {
|
|||||||
IIO_MAP("CH6", "bcove-temp", "SYSTEMP0"),
|
IIO_MAP("CH6", "bcove-temp", "SYSTEMP0"),
|
||||||
IIO_MAP("CH7", "bcove-temp", "SYSTEMP1"),
|
IIO_MAP("CH7", "bcove-temp", "SYSTEMP1"),
|
||||||
IIO_MAP("CH8", "bcove-temp", "SYSTEMP2"),
|
IIO_MAP("CH8", "bcove-temp", "SYSTEMP2"),
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int mrfld_adc_probe(struct platform_device *pdev)
|
static int mrfld_adc_probe(struct platform_device *pdev)
|
||||||
@ -222,7 +222,7 @@ static int mrfld_adc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct platform_device_id mrfld_adc_id_table[] = {
|
static const struct platform_device_id mrfld_adc_id_table[] = {
|
||||||
{ .name = "mrfld_bcove_adc" },
|
{ .name = "mrfld_bcove_adc" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, mrfld_adc_id_table);
|
MODULE_DEVICE_TABLE(platform, mrfld_adc_id_table);
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ static int lpc18xx_adc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id lpc18xx_adc_match[] = {
|
static const struct of_device_id lpc18xx_adc_match[] = {
|
||||||
{ .compatible = "nxp,lpc1850-adc" },
|
{ .compatible = "nxp,lpc1850-adc" },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, lpc18xx_adc_match);
|
MODULE_DEVICE_TABLE(of, lpc18xx_adc_match);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ static int ltc2471_i2c_probe(struct i2c_client *client)
|
|||||||
static const struct i2c_device_id ltc2471_i2c_id[] = {
|
static const struct i2c_device_id ltc2471_i2c_id[] = {
|
||||||
{ "ltc2471", ltc2471 },
|
{ "ltc2471", ltc2471 },
|
||||||
{ "ltc2473", ltc2473 },
|
{ "ltc2473", ltc2473 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ltc2471_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, ltc2471_i2c_id);
|
||||||
|
|
||||||
|
@ -1551,7 +1551,7 @@ static const struct of_device_id max1363_of_match[] = {
|
|||||||
MAX1363_COMPATIBLE("maxim,max11645", max11645),
|
MAX1363_COMPATIBLE("maxim,max11645", max11645),
|
||||||
MAX1363_COMPATIBLE("maxim,max11646", max11646),
|
MAX1363_COMPATIBLE("maxim,max11646", max11646),
|
||||||
MAX1363_COMPATIBLE("maxim,max11647", max11647),
|
MAX1363_COMPATIBLE("maxim,max11647", max11647),
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, max1363_of_match);
|
MODULE_DEVICE_TABLE(of, max1363_of_match);
|
||||||
|
|
||||||
@ -1672,7 +1672,7 @@ static const struct i2c_device_id max1363_id[] = {
|
|||||||
MAX1363_ID_TABLE("max11645", max11645),
|
MAX1363_ID_TABLE("max11645", max11645),
|
||||||
MAX1363_ID_TABLE("max11646", max11646),
|
MAX1363_ID_TABLE("max11646", max11646),
|
||||||
MAX1363_ID_TABLE("max11647", max11647),
|
MAX1363_ID_TABLE("max11647", max11647),
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, max1363_id);
|
MODULE_DEVICE_TABLE(i2c, max1363_id);
|
||||||
|
@ -176,7 +176,7 @@ static int max77541_adc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct platform_device_id max77541_adc_platform_id[] = {
|
static const struct platform_device_id max77541_adc_platform_id[] = {
|
||||||
{ "max77541-adc" },
|
{ "max77541-adc" },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, max77541_adc_platform_id);
|
MODULE_DEVICE_TABLE(platform, max77541_adc_platform_id);
|
||||||
|
|
||||||
|
@ -1342,7 +1342,7 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
|
|||||||
.compatible = "amlogic,meson-g12a-saradc",
|
.compatible = "amlogic,meson-g12a-saradc",
|
||||||
.data = &meson_sar_adc_g12a_data,
|
.data = &meson_sar_adc_g12a_data,
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, meson_sar_adc_of_match);
|
MODULE_DEVICE_TABLE(of, meson_sar_adc_of_match);
|
||||||
|
|
||||||
|
@ -588,7 +588,7 @@ static const struct of_device_id mt6359_auxadc_of_match[] = {
|
|||||||
{ .compatible = "mediatek,mt6357-auxadc", .data = &mt6357_chip_info },
|
{ .compatible = "mediatek,mt6357-auxadc", .data = &mt6357_chip_info },
|
||||||
{ .compatible = "mediatek,mt6358-auxadc", .data = &mt6358_chip_info },
|
{ .compatible = "mediatek,mt6358-auxadc", .data = &mt6358_chip_info },
|
||||||
{ .compatible = "mediatek,mt6359-auxadc", .data = &mt6359_chip_info },
|
{ .compatible = "mediatek,mt6359-auxadc", .data = &mt6359_chip_info },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mt6359_auxadc_of_match);
|
MODULE_DEVICE_TABLE(of, mt6359_auxadc_of_match);
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ static int mt6370_adc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id mt6370_adc_of_id[] = {
|
static const struct of_device_id mt6370_adc_of_id[] = {
|
||||||
{ .compatible = "mediatek,mt6370-adc", },
|
{ .compatible = "mediatek,mt6370-adc", },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mt6370_adc_of_id);
|
MODULE_DEVICE_TABLE(of, mt6370_adc_of_id);
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ static const struct iio_info npcm_adc_iio_info = {
|
|||||||
static const struct of_device_id npcm_adc_match[] = {
|
static const struct of_device_id npcm_adc_match[] = {
|
||||||
{ .compatible = "nuvoton,npcm750-adc", .data = &npxm7xx_adc_info},
|
{ .compatible = "nuvoton,npcm750-adc", .data = &npxm7xx_adc_info},
|
||||||
{ .compatible = "nuvoton,npcm845-adc", .data = &npxm8xx_adc_info},
|
{ .compatible = "nuvoton,npcm845-adc", .data = &npxm8xx_adc_info},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, npcm_adc_match);
|
MODULE_DEVICE_TABLE(of, npcm_adc_match);
|
||||||
|
|
||||||
|
@ -900,7 +900,7 @@ static ssize_t pac1921_read_scale_avail(struct iio_dev *indio_dev,
|
|||||||
|
|
||||||
static const struct iio_chan_spec_ext_info pac1921_ext_info_voltage[] = {
|
static const struct iio_chan_spec_ext_info pac1921_ext_info_voltage[] = {
|
||||||
PAC1921_EXT_INFO_SCALE_AVAIL,
|
PAC1921_EXT_INFO_SCALE_AVAIL,
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_chan_spec_ext_info pac1921_ext_info_current[] = {
|
static const struct iio_chan_spec_ext_info pac1921_ext_info_current[] = {
|
||||||
@ -911,7 +911,7 @@ static const struct iio_chan_spec_ext_info pac1921_ext_info_current[] = {
|
|||||||
.write = pac1921_write_shunt_resistor,
|
.write = pac1921_write_shunt_resistor,
|
||||||
.shared = IIO_SEPARATE,
|
.shared = IIO_SEPARATE,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_event_spec pac1921_overflow_event[] = {
|
static const struct iio_event_spec pac1921_overflow_event[] = {
|
||||||
|
@ -1164,7 +1164,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(palmas_pm_ops, palmas_gpadc_suspend,
|
|||||||
|
|
||||||
static const struct of_device_id of_palmas_gpadc_match_tbl[] = {
|
static const struct of_device_id of_palmas_gpadc_match_tbl[] = {
|
||||||
{ .compatible = "ti,palmas-gpadc", },
|
{ .compatible = "ti,palmas-gpadc", },
|
||||||
{ /* end */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, of_palmas_gpadc_match_tbl);
|
MODULE_DEVICE_TABLE(of, of_palmas_gpadc_match_tbl);
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ static const struct of_device_id rcar_gyroadc_child_match[] __maybe_unused = {
|
|||||||
.compatible = "maxim,max11100",
|
.compatible = "maxim,max11100",
|
||||||
.data = (void *)RCAR_GYROADC_MODE_SELECT_3_MAX1162,
|
.data = (void *)RCAR_GYROADC_MODE_SELECT_3_MAX1162,
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rcar_gyroadc_parse_subdevs(struct iio_dev *indio_dev)
|
static int rcar_gyroadc_parse_subdevs(struct iio_dev *indio_dev)
|
||||||
|
@ -188,7 +188,7 @@ static const struct iio_chan_spec rn5t618_adc_iio_channels[] = {
|
|||||||
static const struct iio_map rn5t618_maps[] = {
|
static const struct iio_map rn5t618_maps[] = {
|
||||||
IIO_MAP("VADP", "rn5t618-power", "vadp"),
|
IIO_MAP("VADP", "rn5t618-power", "vadp"),
|
||||||
IIO_MAP("VUSB", "rn5t618-power", "vusb"),
|
IIO_MAP("VUSB", "rn5t618-power", "vusb"),
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rn5t618_adc_probe(struct platform_device *pdev)
|
static int rn5t618_adc_probe(struct platform_device *pdev)
|
||||||
|
@ -507,7 +507,7 @@ static const struct rzg2l_adc_hw_params rzg3s_hw_params = {
|
|||||||
static const struct of_device_id rzg2l_adc_match[] = {
|
static const struct of_device_id rzg2l_adc_match[] = {
|
||||||
{ .compatible = "renesas,r9a08g045-adc", .data = &rzg3s_hw_params },
|
{ .compatible = "renesas,r9a08g045-adc", .data = &rzg3s_hw_params },
|
||||||
{ .compatible = "renesas,rzg2l-adc", .data = &rzg2l_hw_params },
|
{ .compatible = "renesas,rzg2l-adc", .data = &rzg2l_hw_params },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, rzg2l_adc_match);
|
MODULE_DEVICE_TABLE(of, rzg2l_adc_match);
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ static int spear_adc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id spear_adc_dt_ids[] = {
|
static const struct of_device_id spear_adc_dt_ids[] = {
|
||||||
{ .compatible = "st,spear600-adc", },
|
{ .compatible = "st,spear600-adc", },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, spear_adc_dt_ids);
|
MODULE_DEVICE_TABLE(of, spear_adc_dt_ids);
|
||||||
|
|
||||||
|
@ -469,7 +469,7 @@ static struct stm32_adc_trig_info stm32h7_adc_trigs[] = {
|
|||||||
{ LPTIM1_OUT, STM32_EXT18 },
|
{ LPTIM1_OUT, STM32_EXT18 },
|
||||||
{ LPTIM2_OUT, STM32_EXT19 },
|
{ LPTIM2_OUT, STM32_EXT19 },
|
||||||
{ LPTIM3_OUT, STM32_EXT20 },
|
{ LPTIM3_OUT, STM32_EXT20 },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1876,7 +1876,7 @@ static const struct iio_chan_spec_ext_info stm32_adc_ext_info[] = {
|
|||||||
.read = iio_enum_available_read,
|
.read = iio_enum_available_read,
|
||||||
.private = (uintptr_t)&stm32_adc_trig_pol,
|
.private = (uintptr_t)&stm32_adc_trig_pol,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void stm32_adc_debugfs_init(struct iio_dev *indio_dev)
|
static void stm32_adc_debugfs_init(struct iio_dev *indio_dev)
|
||||||
|
@ -108,7 +108,7 @@ static const struct stm32_dfsdm_str2field stm32_dfsdm_chan_type[] = {
|
|||||||
{ "SPI_F", 1 }, /* SPI with data on falling edge */
|
{ "SPI_F", 1 }, /* SPI with data on falling edge */
|
||||||
{ "MANCH_R", 2 }, /* Manchester codec, rising edge = logic 0 */
|
{ "MANCH_R", 2 }, /* Manchester codec, rising edge = logic 0 */
|
||||||
{ "MANCH_F", 3 }, /* Manchester codec, falling edge = logic 1 */
|
{ "MANCH_F", 3 }, /* Manchester codec, falling edge = logic 1 */
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* DFSDM channel clock source */
|
/* DFSDM channel clock source */
|
||||||
@ -121,7 +121,7 @@ static const struct stm32_dfsdm_str2field stm32_dfsdm_chan_src[] = {
|
|||||||
{ "CLKOUT_F", DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_FALLING },
|
{ "CLKOUT_F", DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_FALLING },
|
||||||
/* Internal SPI clock divided by 2 (falling edge) */
|
/* Internal SPI clock divided by 2 (falling edge) */
|
||||||
{ "CLKOUT_R", DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_RISING },
|
{ "CLKOUT_R", DFSDM_CHANNEL_SPI_CLOCK_INTERNAL_DIV2_RISING },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int stm32_dfsdm_str2val(const char *str,
|
static int stm32_dfsdm_str2val(const char *str,
|
||||||
@ -167,7 +167,7 @@ static const struct stm32_dfsdm_trig_info stm32_dfsdm_trigs[] = {
|
|||||||
{ LPTIM1_OUT, 26 },
|
{ LPTIM1_OUT, 26 },
|
||||||
{ LPTIM2_OUT, 27 },
|
{ LPTIM2_OUT, 27 },
|
||||||
{ LPTIM3_OUT, 28 },
|
{ LPTIM3_OUT, 28 },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int stm32_dfsdm_get_jextsel(struct iio_dev *indio_dev,
|
static int stm32_dfsdm_get_jextsel(struct iio_dev *indio_dev,
|
||||||
@ -1747,7 +1747,7 @@ static const struct of_device_id stm32_dfsdm_adc_match[] = {
|
|||||||
.compatible = "st,stm32-dfsdm-dmic",
|
.compatible = "st,stm32-dfsdm-dmic",
|
||||||
.data = &stm32h7_dfsdm_audio_data,
|
.data = &stm32h7_dfsdm_audio_data,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match);
|
MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match);
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ static int sun20i_gpadc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
static const struct of_device_id sun20i_gpadc_of_id[] = {
|
static const struct of_device_id sun20i_gpadc_of_id[] = {
|
||||||
{ .compatible = "allwinner,sun20i-d1-gpadc" },
|
{ .compatible = "allwinner,sun20i-d1-gpadc" },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, sun20i_gpadc_of_id);
|
MODULE_DEVICE_TABLE(of, sun20i_gpadc_of_id);
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ struct sun4i_gpadc_iio {
|
|||||||
|
|
||||||
static const struct iio_map sun4i_gpadc_hwmon_maps[] = {
|
static const struct iio_map sun4i_gpadc_hwmon_maps[] = {
|
||||||
IIO_MAP("temp_adc", "iio_hwmon.0", NULL),
|
IIO_MAP("temp_adc", "iio_hwmon.0", NULL),
|
||||||
{ /* sentinel */ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_chan_spec sun4i_gpadc_channels[] = {
|
static const struct iio_chan_spec sun4i_gpadc_channels[] = {
|
||||||
@ -485,7 +485,7 @@ static const struct of_device_id sun4i_gpadc_of_id[] = {
|
|||||||
.compatible = "allwinner,sun8i-a33-ths",
|
.compatible = "allwinner,sun8i-a33-ths",
|
||||||
.data = &sun8i_a33_gpadc_data,
|
.data = &sun8i_a33_gpadc_data,
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int sun4i_gpadc_probe_dt(struct platform_device *pdev,
|
static int sun4i_gpadc_probe_dt(struct platform_device *pdev,
|
||||||
@ -685,7 +685,7 @@ static const struct platform_device_id sun4i_gpadc_id[] = {
|
|||||||
{ "sun4i-a10-gpadc-iio", (kernel_ulong_t)&sun4i_gpadc_data },
|
{ "sun4i-a10-gpadc-iio", (kernel_ulong_t)&sun4i_gpadc_data },
|
||||||
{ "sun5i-a13-gpadc-iio", (kernel_ulong_t)&sun5i_gpadc_data },
|
{ "sun5i-a13-gpadc-iio", (kernel_ulong_t)&sun5i_gpadc_data },
|
||||||
{ "sun6i-a31-gpadc-iio", (kernel_ulong_t)&sun6i_gpadc_data },
|
{ "sun6i-a31-gpadc-iio", (kernel_ulong_t)&sun6i_gpadc_data },
|
||||||
{ /* sentinel */ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, sun4i_gpadc_id);
|
MODULE_DEVICE_TABLE(platform, sun4i_gpadc_id);
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ MODULE_DEVICE_TABLE(spi, lmp92064_id_table);
|
|||||||
|
|
||||||
static const struct of_device_id lmp92064_of_table[] = {
|
static const struct of_device_id lmp92064_of_table[] = {
|
||||||
{ .compatible = "ti,lmp92064" },
|
{ .compatible = "ti,lmp92064" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, lmp92064_of_table);
|
MODULE_DEVICE_TABLE(of, lmp92064_of_table);
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ static const struct of_device_id of_twl6030_match_tbl[] = {
|
|||||||
.compatible = "ti,twl6032-gpadc",
|
.compatible = "ti,twl6032-gpadc",
|
||||||
.data = &twl6032_pdata,
|
.data = &twl6032_pdata,
|
||||||
},
|
},
|
||||||
{ /* end */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, of_twl6030_match_tbl);
|
MODULE_DEVICE_TABLE(of, of_twl6030_match_tbl);
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ static const struct iio_enum vf610_conversion_mode = {
|
|||||||
|
|
||||||
static const struct iio_chan_spec_ext_info vf610_ext_info[] = {
|
static const struct iio_chan_spec_ext_info vf610_ext_info[] = {
|
||||||
IIO_ENUM("conversion_mode", IIO_SHARED_BY_DIR, &vf610_conversion_mode),
|
IIO_ENUM("conversion_mode", IIO_SHARED_BY_DIR, &vf610_conversion_mode),
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VF610_ADC_CHAN(_idx, _chan_type) { \
|
#define VF610_ADC_CHAN(_idx, _chan_type) { \
|
||||||
@ -813,7 +813,7 @@ static const struct vf610_chip_info imx6sx_chip_info = {
|
|||||||
static const struct of_device_id vf610_adc_match[] = {
|
static const struct of_device_id vf610_adc_match[] = {
|
||||||
{ .compatible = "fsl,imx6sx-adc", .data = &imx6sx_chip_info},
|
{ .compatible = "fsl,imx6sx-adc", .data = &imx6sx_chip_info},
|
||||||
{ .compatible = "fsl,vf610-adc", .data = &vf610_chip_info},
|
{ .compatible = "fsl,vf610-adc", .data = &vf610_chip_info},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, vf610_adc_match);
|
MODULE_DEVICE_TABLE(of, vf610_adc_match);
|
||||||
|
|
||||||
|
@ -1186,7 +1186,7 @@ static const struct of_device_id xadc_of_match_table[] = {
|
|||||||
.compatible = "xlnx,system-management-wiz-1.3",
|
.compatible = "xlnx,system-management-wiz-1.3",
|
||||||
.data = &xadc_us_axi_ops
|
.data = &xadc_us_axi_ops
|
||||||
},
|
},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, xadc_of_match_table);
|
MODULE_DEVICE_TABLE(of, xadc_of_match_table);
|
||||||
|
|
||||||
|
@ -1505,14 +1505,14 @@ static const struct of_device_id ad74413r_dt_id[] = {
|
|||||||
.compatible = "adi,ad74413r",
|
.compatible = "adi,ad74413r",
|
||||||
.data = &ad74413r_chip_info_data,
|
.data = &ad74413r_chip_info_data,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ad74413r_dt_id);
|
MODULE_DEVICE_TABLE(of, ad74413r_dt_id);
|
||||||
|
|
||||||
static const struct spi_device_id ad74413r_spi_id[] = {
|
static const struct spi_device_id ad74413r_spi_id[] = {
|
||||||
{ .name = "ad74412r", .driver_data = (kernel_ulong_t)&ad74412r_chip_info_data },
|
{ .name = "ad74412r", .driver_data = (kernel_ulong_t)&ad74412r_chip_info_data },
|
||||||
{ .name = "ad74413r", .driver_data = (kernel_ulong_t)&ad74413r_chip_info_data },
|
{ .name = "ad74413r", .driver_data = (kernel_ulong_t)&ad74413r_chip_info_data },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad74413r_spi_id);
|
MODULE_DEVICE_TABLE(spi, ad74413r_spi_id);
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ static const struct of_device_id rescale_match[] = {
|
|||||||
.data = &rescale_cfg[TEMP_SENSE_RTD], },
|
.data = &rescale_cfg[TEMP_SENSE_RTD], },
|
||||||
{ .compatible = "temperature-transducer",
|
{ .compatible = "temperature-transducer",
|
||||||
.data = &rescale_cfg[TEMP_TRANSDUCER], },
|
.data = &rescale_cfg[TEMP_TRANSDUCER], },
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, rescale_match);
|
MODULE_DEVICE_TABLE(of, rescale_match);
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ static const struct spi_device_id ad8366_id[] = {
|
|||||||
{"adl5240", ID_ADL5240},
|
{"adl5240", ID_ADL5240},
|
||||||
{"hmc792a", ID_HMC792},
|
{"hmc792a", ID_HMC792},
|
||||||
{"hmc1119", ID_HMC1119},
|
{"hmc1119", ID_HMC1119},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad8366_id);
|
MODULE_DEVICE_TABLE(spi, ad8366_id);
|
||||||
|
|
||||||
|
@ -378,13 +378,13 @@ static int ada4250_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id ada4250_id[] = {
|
static const struct spi_device_id ada4250_id[] = {
|
||||||
{ "ada4250", 0 },
|
{ "ada4250", 0 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ada4250_id);
|
MODULE_DEVICE_TABLE(spi, ada4250_id);
|
||||||
|
|
||||||
static const struct of_device_id ada4250_of_match[] = {
|
static const struct of_device_id ada4250_of_match[] = {
|
||||||
{ .compatible = "adi,ada4250" },
|
{ .compatible = "adi,ada4250" },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ada4250_of_match);
|
MODULE_DEVICE_TABLE(of, ada4250_of_match);
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ static const struct iio_chan_spec_ext_info ltc6373_ext_info[] = {
|
|||||||
.write = ltc6373_write_powerdown,
|
.write = ltc6373_write_powerdown,
|
||||||
.shared = IIO_SEPARATE,
|
.shared = IIO_SEPARATE,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HMC425A_CHAN(_channel) \
|
#define HMC425A_CHAN(_channel) \
|
||||||
@ -407,7 +407,7 @@ static const struct of_device_id hmc425a_of_match[] = {
|
|||||||
.data = &hmc425a_chip_info_tbl[ID_ADRF5740]},
|
.data = &hmc425a_chip_info_tbl[ID_ADRF5740]},
|
||||||
{ .compatible = "adi,ltc6373",
|
{ .compatible = "adi,ltc6373",
|
||||||
.data = &hmc425a_chip_info_tbl[ID_LTC6373]},
|
.data = &hmc425a_chip_info_tbl[ID_LTC6373]},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, hmc425a_of_match);
|
MODULE_DEVICE_TABLE(of, hmc425a_of_match);
|
||||||
|
|
||||||
|
@ -631,7 +631,7 @@ static const struct i2c_device_id ad7150_id[] = {
|
|||||||
{ "ad7150", AD7150 },
|
{ "ad7150", AD7150 },
|
||||||
{ "ad7151", AD7151 },
|
{ "ad7151", AD7151 },
|
||||||
{ "ad7156", AD7150 },
|
{ "ad7156", AD7150 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(i2c, ad7150_id);
|
MODULE_DEVICE_TABLE(i2c, ad7150_id);
|
||||||
@ -640,7 +640,7 @@ static const struct of_device_id ad7150_of_match[] = {
|
|||||||
{ "adi,ad7150" },
|
{ "adi,ad7150" },
|
||||||
{ "adi,ad7151" },
|
{ "adi,ad7151" },
|
||||||
{ "adi,ad7156" },
|
{ "adi,ad7156" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
static struct i2c_driver ad7150_driver = {
|
static struct i2c_driver ad7150_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
@ -792,7 +792,7 @@ static const struct i2c_device_id ad7746_id[] = {
|
|||||||
{ "ad7745", 7745 },
|
{ "ad7745", 7745 },
|
||||||
{ "ad7746", 7746 },
|
{ "ad7746", 7746 },
|
||||||
{ "ad7747", 7747 },
|
{ "ad7747", 7747 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ad7746_id);
|
MODULE_DEVICE_TABLE(i2c, ad7746_id);
|
||||||
|
|
||||||
@ -800,7 +800,7 @@ static const struct of_device_id ad7746_of_match[] = {
|
|||||||
{ .compatible = "adi,ad7745" },
|
{ .compatible = "adi,ad7745" },
|
||||||
{ .compatible = "adi,ad7746" },
|
{ .compatible = "adi,ad7746" },
|
||||||
{ .compatible = "adi,ad7747" },
|
{ .compatible = "adi,ad7747" },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ad7746_of_match);
|
MODULE_DEVICE_TABLE(of, ad7746_of_match);
|
||||||
|
|
||||||
|
@ -140,13 +140,13 @@ static int ags02ma_probe(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct i2c_device_id ags02ma_id_table[] = {
|
static const struct i2c_device_id ags02ma_id_table[] = {
|
||||||
{ "ags02ma" },
|
{ "ags02ma" },
|
||||||
{ /* Sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ags02ma_id_table);
|
MODULE_DEVICE_TABLE(i2c, ags02ma_id_table);
|
||||||
|
|
||||||
static const struct of_device_id ags02ma_of_table[] = {
|
static const struct of_device_id ags02ma_of_table[] = {
|
||||||
{ .compatible = "aosong,ags02ma" },
|
{ .compatible = "aosong,ags02ma" },
|
||||||
{ /* Sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ags02ma_of_table);
|
MODULE_DEVICE_TABLE(of, ags02ma_of_table);
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ static const struct i2c_device_id atlas_ezo_id[] = {
|
|||||||
{ "atlas-co2-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_CO2_EZO] },
|
{ "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-o2-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_O2_EZO] },
|
||||||
{ "atlas-hum-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO] },
|
{ "atlas-hum-ezo", (kernel_ulong_t)&atlas_ezo_devices[ATLAS_HUM_EZO] },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, atlas_ezo_id);
|
MODULE_DEVICE_TABLE(i2c, atlas_ezo_id);
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ static const struct of_device_id atlas_ezo_dt_ids[] = {
|
|||||||
{ .compatible = "atlas,co2-ezo", .data = &atlas_ezo_devices[ATLAS_CO2_EZO], },
|
{ .compatible = "atlas,co2-ezo", .data = &atlas_ezo_devices[ATLAS_CO2_EZO], },
|
||||||
{ .compatible = "atlas,o2-ezo", .data = &atlas_ezo_devices[ATLAS_O2_EZO], },
|
{ .compatible = "atlas,o2-ezo", .data = &atlas_ezo_devices[ATLAS_O2_EZO], },
|
||||||
{ .compatible = "atlas,hum-ezo", .data = &atlas_ezo_devices[ATLAS_HUM_EZO], },
|
{ .compatible = "atlas,hum-ezo", .data = &atlas_ezo_devices[ATLAS_HUM_EZO], },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, atlas_ezo_dt_ids);
|
MODULE_DEVICE_TABLE(of, atlas_ezo_dt_ids);
|
||||||
|
|
||||||
|
@ -593,7 +593,7 @@ static const struct i2c_device_id atlas_id[] = {
|
|||||||
{ "atlas-orp-sm", (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM] },
|
{ "atlas-orp-sm", (kernel_ulong_t)&atlas_devices[ATLAS_ORP_SM] },
|
||||||
{ "atlas-do-sm", (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM] },
|
{ "atlas-do-sm", (kernel_ulong_t)&atlas_devices[ATLAS_DO_SM] },
|
||||||
{ "atlas-rtd-sm", (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM] },
|
{ "atlas-rtd-sm", (kernel_ulong_t)&atlas_devices[ATLAS_RTD_SM] },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, atlas_id);
|
MODULE_DEVICE_TABLE(i2c, atlas_id);
|
||||||
|
|
||||||
|
@ -37,13 +37,13 @@ static int bme680_i2c_probe(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct i2c_device_id bme680_i2c_id[] = {
|
static const struct i2c_device_id bme680_i2c_id[] = {
|
||||||
{ "bme680" },
|
{ "bme680" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, bme680_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, bme680_i2c_id);
|
||||||
|
|
||||||
static const struct of_device_id bme680_of_i2c_match[] = {
|
static const struct of_device_id bme680_of_i2c_match[] = {
|
||||||
{ .compatible = "bosch,bme680", },
|
{ .compatible = "bosch,bme680", },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, bme680_of_i2c_match);
|
MODULE_DEVICE_TABLE(of, bme680_of_i2c_match);
|
||||||
|
|
||||||
|
@ -140,13 +140,13 @@ static int bme680_spi_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id bme680_spi_id[] = {
|
static const struct spi_device_id bme680_spi_id[] = {
|
||||||
{"bme680", 0},
|
{"bme680", 0},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, bme680_spi_id);
|
MODULE_DEVICE_TABLE(spi, bme680_spi_id);
|
||||||
|
|
||||||
static const struct of_device_id bme680_of_spi_match[] = {
|
static const struct of_device_id bme680_of_spi_match[] = {
|
||||||
{ .compatible = "bosch,bme680", },
|
{ .compatible = "bosch,bme680", },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, bme680_of_spi_match);
|
MODULE_DEVICE_TABLE(of, bme680_of_spi_match);
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ static const struct iio_chan_spec_ext_info sunrise_concentration_ext_info[] = {
|
|||||||
.read = iio_enum_available_read,
|
.read = iio_enum_available_read,
|
||||||
.private = (uintptr_t)&sunrise_error_statuses_enum,
|
.private = (uintptr_t)&sunrise_error_statuses_enum,
|
||||||
},
|
},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_chan_spec sunrise_channels[] = {
|
static const struct iio_chan_spec sunrise_channels[] = {
|
||||||
@ -519,7 +519,7 @@ static int sunrise_probe(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct of_device_id sunrise_of_match[] = {
|
static const struct of_device_id sunrise_of_match[] = {
|
||||||
{ .compatible = "senseair,sunrise-006-0-0007" },
|
{ .compatible = "senseair,sunrise-006-0-0007" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, sunrise_of_match);
|
MODULE_DEVICE_TABLE(of, sunrise_of_match);
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ static const struct platform_device_id cros_ec_lid_angle_ids[] = {
|
|||||||
{
|
{
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, cros_ec_lid_angle_ids);
|
MODULE_DEVICE_TABLE(platform, cros_ec_lid_angle_ids);
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ static const struct platform_device_id cros_ec_sensors_ids[] = {
|
|||||||
{
|
{
|
||||||
.name = "cros-ec-mag",
|
.name = "cros-ec-mag",
|
||||||
},
|
},
|
||||||
{ /* sentinel */ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, cros_ec_sensors_ids);
|
MODULE_DEVICE_TABLE(platform, cros_ec_sensors_ids);
|
||||||
|
|
||||||
|
@ -480,7 +480,7 @@ const struct iio_chan_spec_ext_info cros_ec_sensors_ext_info[] = {
|
|||||||
.shared = IIO_SHARED_BY_ALL,
|
.shared = IIO_SHARED_BY_ALL,
|
||||||
.read = cros_ec_sensors_id
|
.read = cros_ec_sensors_id
|
||||||
},
|
},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
EXPORT_SYMBOL_GPL(cros_ec_sensors_ext_info);
|
EXPORT_SYMBOL_GPL(cros_ec_sensors_ext_info);
|
||||||
|
|
||||||
|
@ -417,7 +417,7 @@ static const struct iio_chan_spec_ext_info scmi_iio_ext_info[] = {
|
|||||||
.read = scmi_iio_get_raw_available,
|
.read = scmi_iio_get_raw_available,
|
||||||
.shared = IIO_SHARED_BY_TYPE,
|
.shared = IIO_SHARED_BY_TYPE,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void scmi_iio_set_timestamp_channel(struct iio_chan_spec *iio_chan,
|
static void scmi_iio_set_timestamp_channel(struct iio_chan_spec *iio_chan,
|
||||||
@ -704,7 +704,7 @@ static int scmi_iio_dev_probe(struct scmi_device *sdev)
|
|||||||
|
|
||||||
static const struct scmi_device_id scmi_id_table[] = {
|
static const struct scmi_device_id scmi_id_table[] = {
|
||||||
{ SCMI_PROTOCOL_SENSOR, "iiodev" },
|
{ SCMI_PROTOCOL_SENSOR, "iiodev" },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(scmi, scmi_id_table);
|
MODULE_DEVICE_TABLE(scmi, scmi_id_table);
|
||||||
|
@ -434,7 +434,7 @@ static const struct of_device_id ssp_of_match[] = {
|
|||||||
.compatible = "samsung,sensorhub-thermostat",
|
.compatible = "samsung,sensorhub-thermostat",
|
||||||
.data = &ssp_thermostat_info,
|
.data = &ssp_thermostat_info,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ssp_of_match);
|
MODULE_DEVICE_TABLE(of, ssp_of_match);
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@ static const struct iio_chan_spec_ext_info ad5064_ext_info[] = {
|
|||||||
},
|
},
|
||||||
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5064_powerdown_mode_enum),
|
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5064_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5064_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5064_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct iio_chan_spec_ext_info ltc2617_ext_info[] = {
|
static const struct iio_chan_spec_ext_info ltc2617_ext_info[] = {
|
||||||
@ -390,7 +390,7 @@ static const struct iio_chan_spec_ext_info ltc2617_ext_info[] = {
|
|||||||
},
|
},
|
||||||
IIO_ENUM("powerdown_mode", IIO_SEPARATE, <c2617_powerdown_mode_enum),
|
IIO_ENUM("powerdown_mode", IIO_SEPARATE, <c2617_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, <c2617_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, <c2617_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5064_CHANNEL(chan, addr, bits, _shift, _ext_info) { \
|
#define AD5064_CHANNEL(chan, addr, bits, _shift, _ext_info) { \
|
||||||
@ -936,7 +936,7 @@ static const struct spi_device_id ad5064_spi_ids[] = {
|
|||||||
{"ad5668-1", ID_AD5668_1},
|
{"ad5668-1", ID_AD5668_1},
|
||||||
{"ad5668-2", ID_AD5668_2},
|
{"ad5668-2", ID_AD5668_2},
|
||||||
{"ad5668-3", ID_AD5668_2}, /* similar enough to ad5668-2 */
|
{"ad5668-3", ID_AD5668_2}, /* similar enough to ad5668-2 */
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5064_spi_ids);
|
MODULE_DEVICE_TABLE(spi, ad5064_spi_ids);
|
||||||
|
|
||||||
@ -1048,7 +1048,7 @@ static const struct i2c_device_id ad5064_i2c_ids[] = {
|
|||||||
{"ltc2635-h10", ID_LTC2635_H10},
|
{"ltc2635-h10", ID_LTC2635_H10},
|
||||||
{"ltc2635-l8", ID_LTC2635_L8},
|
{"ltc2635-l8", ID_LTC2635_L8},
|
||||||
{"ltc2635-h8", ID_LTC2635_H8},
|
{"ltc2635-h8", ID_LTC2635_H8},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ad5064_i2c_ids);
|
MODULE_DEVICE_TABLE(i2c, ad5064_i2c_ids);
|
||||||
|
|
||||||
|
@ -542,7 +542,7 @@ static const struct spi_device_id ad5360_ids[] = {
|
|||||||
{ "ad5371", ID_AD5371 },
|
{ "ad5371", ID_AD5371 },
|
||||||
{ "ad5372", ID_AD5372 },
|
{ "ad5372", ID_AD5372 },
|
||||||
{ "ad5373", ID_AD5373 },
|
{ "ad5373", ID_AD5373 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5360_ids);
|
MODULE_DEVICE_TABLE(spi, ad5360_ids);
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ static const struct iio_chan_spec_ext_info ad5380_ext_info[] = {
|
|||||||
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
||||||
&ad5380_powerdown_mode_enum),
|
&ad5380_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5380_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5380_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5380_CHANNEL(_bits) { \
|
#define AD5380_CHANNEL(_bits) { \
|
||||||
|
@ -141,7 +141,7 @@ static const struct iio_chan_spec_ext_info ad5446_ext_info_powerdown[] = {
|
|||||||
},
|
},
|
||||||
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5446_powerdown_mode_enum),
|
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5446_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5446_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5446_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define _AD5446_CHANNEL(bits, storage, _shift, ext) { \
|
#define _AD5446_CHANNEL(bits, storage, _shift, ext) { \
|
||||||
@ -440,7 +440,7 @@ static const struct spi_device_id ad5446_spi_ids[] = {
|
|||||||
{"dac101s101", ID_AD5310},
|
{"dac101s101", ID_AD5310},
|
||||||
{"dac121s101", ID_AD5320},
|
{"dac121s101", ID_AD5320},
|
||||||
{"dac7512", ID_AD5320},
|
{"dac7512", ID_AD5320},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5446_spi_ids);
|
MODULE_DEVICE_TABLE(spi, ad5446_spi_ids);
|
||||||
|
|
||||||
@ -543,7 +543,7 @@ static const struct i2c_device_id ad5446_i2c_ids[] = {
|
|||||||
{"ad5602", ID_AD5602},
|
{"ad5602", ID_AD5602},
|
||||||
{"ad5612", ID_AD5612},
|
{"ad5612", ID_AD5612},
|
||||||
{"ad5622", ID_AD5622},
|
{"ad5622", ID_AD5622},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ad5446_i2c_ids);
|
MODULE_DEVICE_TABLE(i2c, ad5446_i2c_ids);
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ static const struct spi_device_id ad5449_spi_ids[] = {
|
|||||||
{ "ad5439", ID_AD5439 },
|
{ "ad5439", ID_AD5439 },
|
||||||
{ "ad5443", ID_AD5443 },
|
{ "ad5443", ID_AD5443 },
|
||||||
{ "ad5449", ID_AD5449 },
|
{ "ad5449", ID_AD5449 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5449_spi_ids);
|
MODULE_DEVICE_TABLE(spi, ad5449_spi_ids);
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ static const struct iio_chan_spec_ext_info ad5504_ext_info[] = {
|
|||||||
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
||||||
&ad5504_powerdown_mode_enum),
|
&ad5504_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5504_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5504_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5504_CHANNEL(_chan) { \
|
#define AD5504_CHANNEL(_chan) { \
|
||||||
@ -320,7 +320,7 @@ static int ad5504_probe(struct spi_device *spi)
|
|||||||
static const struct spi_device_id ad5504_id[] = {
|
static const struct spi_device_id ad5504_id[] = {
|
||||||
{"ad5504", ID_AD5504},
|
{"ad5504", ID_AD5504},
|
||||||
{"ad5501", ID_AD5501},
|
{"ad5501", ID_AD5501},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5504_id);
|
MODULE_DEVICE_TABLE(spi, ad5504_id);
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ static const struct iio_chan_spec_ext_info ad5592r_ext_info[] = {
|
|||||||
.read = ad5592r_show_scale_available,
|
.read = ad5592r_show_scale_available,
|
||||||
.shared = IIO_SHARED_BY_TYPE,
|
.shared = IIO_SHARED_BY_TYPE,
|
||||||
},
|
},
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void ad5592r_setup_channel(struct iio_dev *iio_dev,
|
static void ad5592r_setup_channel(struct iio_dev *iio_dev,
|
||||||
|
@ -137,19 +137,19 @@ static void ad5592r_spi_remove(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id ad5592r_spi_ids[] = {
|
static const struct spi_device_id ad5592r_spi_ids[] = {
|
||||||
{ .name = "ad5592r", },
|
{ .name = "ad5592r", },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5592r_spi_ids);
|
MODULE_DEVICE_TABLE(spi, ad5592r_spi_ids);
|
||||||
|
|
||||||
static const struct of_device_id ad5592r_of_match[] = {
|
static const struct of_device_id ad5592r_of_match[] = {
|
||||||
{ .compatible = "adi,ad5592r", },
|
{ .compatible = "adi,ad5592r", },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ad5592r_of_match);
|
MODULE_DEVICE_TABLE(of, ad5592r_of_match);
|
||||||
|
|
||||||
static const struct acpi_device_id ad5592r_acpi_match[] = {
|
static const struct acpi_device_id ad5592r_acpi_match[] = {
|
||||||
{"ADS5592", },
|
{"ADS5592", },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, ad5592r_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, ad5592r_acpi_match);
|
||||||
|
|
||||||
|
@ -116,19 +116,19 @@ static void ad5593r_i2c_remove(struct i2c_client *i2c)
|
|||||||
|
|
||||||
static const struct i2c_device_id ad5593r_i2c_ids[] = {
|
static const struct i2c_device_id ad5593r_i2c_ids[] = {
|
||||||
{ .name = "ad5593r", },
|
{ .name = "ad5593r", },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ad5593r_i2c_ids);
|
MODULE_DEVICE_TABLE(i2c, ad5593r_i2c_ids);
|
||||||
|
|
||||||
static const struct of_device_id ad5593r_of_match[] = {
|
static const struct of_device_id ad5593r_of_match[] = {
|
||||||
{ .compatible = "adi,ad5593r", },
|
{ .compatible = "adi,ad5593r", },
|
||||||
{},
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ad5593r_of_match);
|
MODULE_DEVICE_TABLE(of, ad5593r_of_match);
|
||||||
|
|
||||||
static const struct acpi_device_id ad5593r_acpi_match[] = {
|
static const struct acpi_device_id ad5593r_acpi_match[] = {
|
||||||
{"ADS5593", },
|
{"ADS5593", },
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match);
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ static const struct iio_chan_spec_ext_info ad5624r_ext_info[] = {
|
|||||||
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
|
||||||
&ad5624r_powerdown_mode_enum),
|
&ad5624r_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5624r_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5624r_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5624R_CHANNEL(_chan, _bits) { \
|
#define AD5624R_CHANNEL(_chan, _bits) { \
|
||||||
@ -266,7 +266,7 @@ static const struct spi_device_id ad5624r_id[] = {
|
|||||||
{"ad5624r5", ID_AD5624R5},
|
{"ad5624r5", ID_AD5624R5},
|
||||||
{"ad5644r5", ID_AD5644R5},
|
{"ad5644r5", ID_AD5644R5},
|
||||||
{"ad5664r5", ID_AD5664R5},
|
{"ad5664r5", ID_AD5664R5},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5624r_id);
|
MODULE_DEVICE_TABLE(spi, ad5624r_id);
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ static const struct spi_device_id ad5686_spi_id[] = {
|
|||||||
{"ad5685r", ID_AD5685R},
|
{"ad5685r", ID_AD5685R},
|
||||||
{"ad5686", ID_AD5686},
|
{"ad5686", ID_AD5686},
|
||||||
{"ad5686r", ID_AD5686R},
|
{"ad5686r", ID_AD5686R},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5686_spi_id);
|
MODULE_DEVICE_TABLE(spi, ad5686_spi_id);
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ static const struct iio_chan_spec_ext_info ad5686_ext_info[] = {
|
|||||||
},
|
},
|
||||||
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5686_powerdown_mode_enum),
|
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ad5686_powerdown_mode_enum),
|
||||||
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5686_powerdown_mode_enum),
|
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5686_powerdown_mode_enum),
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5868_CHANNEL(chan, addr, bits, _shift) { \
|
#define AD5868_CHANNEL(chan, addr, bits, _shift) { \
|
||||||
|
@ -82,7 +82,7 @@ static const struct i2c_device_id ad5686_i2c_id[] = {
|
|||||||
{"ad5695r", ID_AD5695R},
|
{"ad5695r", ID_AD5695R},
|
||||||
{"ad5696", ID_AD5696},
|
{"ad5696", ID_AD5696},
|
||||||
{"ad5696r", ID_AD5696R},
|
{"ad5696r", ID_AD5696R},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, ad5686_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, ad5686_i2c_id);
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ static const struct of_device_id ad5686_of_match[] = {
|
|||||||
{ .compatible = "adi,ad5695r" },
|
{ .compatible = "adi,ad5695r" },
|
||||||
{ .compatible = "adi,ad5696" },
|
{ .compatible = "adi,ad5696" },
|
||||||
{ .compatible = "adi,ad5696r" },
|
{ .compatible = "adi,ad5696r" },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, ad5686_of_match);
|
MODULE_DEVICE_TABLE(of, ad5686_of_match);
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ static const struct iio_chan_spec_ext_info ad5755_ext_info[] = {
|
|||||||
.write = ad5755_write_powerdown,
|
.write = ad5755_write_powerdown,
|
||||||
.shared = IIO_SEPARATE,
|
.shared = IIO_SEPARATE,
|
||||||
},
|
},
|
||||||
{ },
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AD5755_CHANNEL(_bits) { \
|
#define AD5755_CHANNEL(_bits) { \
|
||||||
@ -853,7 +853,7 @@ static const struct spi_device_id ad5755_id[] = {
|
|||||||
{ "ad5757", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5757] },
|
{ "ad5757", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5757] },
|
||||||
{ "ad5735", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5735] },
|
{ "ad5735", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5735] },
|
||||||
{ "ad5737", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5737] },
|
{ "ad5737", (kernel_ulong_t)&ad5755_chip_info_tbl[ID_AD5737] },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5755_id);
|
MODULE_DEVICE_TABLE(spi, ad5755_id);
|
||||||
|
|
||||||
|
@ -878,7 +878,7 @@ static int ad5758_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
static const struct spi_device_id ad5758_id[] = {
|
static const struct spi_device_id ad5758_id[] = {
|
||||||
{ "ad5758", 0 },
|
{ "ad5758", 0 },
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5758_id);
|
MODULE_DEVICE_TABLE(spi, ad5758_id);
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ static const struct spi_device_id ad5761_id[] = {
|
|||||||
{"ad5721r", ID_AD5721R},
|
{"ad5721r", ID_AD5721R},
|
||||||
{"ad5761", ID_AD5761},
|
{"ad5761", ID_AD5761},
|
||||||
{"ad5761r", ID_AD5761R},
|
{"ad5761r", ID_AD5761R},
|
||||||
{}
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(spi, ad5761_id);
|
MODULE_DEVICE_TABLE(spi, ad5761_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