2
0
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:
David Lechner 2025-04-11 15:49:34 -05:00 committed by Jonathan Cameron
parent ef24ea86ef
commit 70788d26ae
287 changed files with 472 additions and 472 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -578,7 +578,7 @@ 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);

View File

@ -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,7 +1216,7 @@ 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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1505,7 +1505,7 @@ 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);

View File

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

View File

@ -384,7 +384,7 @@ 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);

View File

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

View File

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

View File

@ -43,7 +43,7 @@ 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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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, &ltc2617_powerdown_mode_enum), IIO_ENUM("powerdown_mode", IIO_SEPARATE, &ltc2617_powerdown_mode_enum),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ltc2617_powerdown_mode_enum), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ltc2617_powerdown_mode_enum),
{ }, { }
}; };
#define AD5064_CHANNEL(chan, addr, bits, _shift, _ext_info) { \ #define AD5064_CHANNEL(chan, addr, bits, _shift, _ext_info) { \

View File

@ -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) { \

View File

@ -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) { \

View File

@ -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) { \

View File

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

View File

@ -143,13 +143,13 @@ 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);

View File

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

View File

@ -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) { \

View File

@ -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) { \

View File

@ -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) { \

View File

@ -637,13 +637,13 @@ static int ad5770r_probe(struct spi_device *spi)
static const struct of_device_id ad5770r_of_id[] = { static const struct of_device_id ad5770r_of_id[] = {
{ .compatible = "adi,ad5770r", }, { .compatible = "adi,ad5770r", },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, ad5770r_of_id); MODULE_DEVICE_TABLE(of, ad5770r_of_id);
static const struct spi_device_id ad5770r_id[] = { static const struct spi_device_id ad5770r_id[] = {
{ "ad5770r", 0 }, { "ad5770r", 0 },
{}, { }
}; };
MODULE_DEVICE_TABLE(spi, ad5770r_id); MODULE_DEVICE_TABLE(spi, ad5770r_id);

View File

@ -312,7 +312,7 @@ static const struct iio_chan_spec_ext_info ad5791_ext_info[] = {
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE, IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE,
&ad5791_powerdown_mode_enum), &ad5791_powerdown_mode_enum),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5791_powerdown_mode_enum), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ad5791_powerdown_mode_enum),
{ }, { }
}; };
#define AD5791_DEFINE_CHIP_INFO(_name, bits, _shift, _lin_comp) \ #define AD5791_DEFINE_CHIP_INFO(_name, bits, _shift, _lin_comp) \

View File

@ -173,7 +173,7 @@ static const struct iio_chan_spec_ext_info ad7303_ext_info[] = {
.write = ad7303_write_dac_powerdown, .write = ad7303_write_dac_powerdown,
.shared = IIO_SEPARATE, .shared = IIO_SEPARATE,
}, },
{ }, { }
}; };
#define AD7303_CHANNEL(chan) { \ #define AD7303_CHANNEL(chan) { \
@ -264,7 +264,7 @@ static int ad7303_probe(struct spi_device *spi)
static const struct of_device_id ad7303_spi_of_match[] = { static const struct of_device_id ad7303_spi_of_match[] = {
{ .compatible = "adi,ad7303", }, { .compatible = "adi,ad7303", },
{ /* sentinel */ }, { }
}; };
MODULE_DEVICE_TABLE(of, ad7303_spi_of_match); MODULE_DEVICE_TABLE(of, ad7303_spi_of_match);

View File

@ -237,7 +237,7 @@ static void dpot_dac_remove(struct platform_device *pdev)
static const struct of_device_id dpot_dac_match[] = { static const struct of_device_id dpot_dac_match[] = {
{ .compatible = "dpot-dac" }, { .compatible = "dpot-dac" },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, dpot_dac_match); MODULE_DEVICE_TABLE(of, dpot_dac_match);

View File

@ -301,7 +301,7 @@ MODULE_DEVICE_TABLE(i2c, ds4424_id);
static const struct of_device_id ds4424_of_match[] = { static const struct of_device_id ds4424_of_match[] = {
{ .compatible = "maxim,ds4422" }, { .compatible = "maxim,ds4422" },
{ .compatible = "maxim,ds4424" }, { .compatible = "maxim,ds4424" },
{ }, { }
}; };
MODULE_DEVICE_TABLE(of, ds4424_of_match); MODULE_DEVICE_TABLE(of, ds4424_of_match);

View File

@ -179,7 +179,7 @@ static void lpc18xx_dac_remove(struct platform_device *pdev)
static const struct of_device_id lpc18xx_dac_match[] = { static const struct of_device_id lpc18xx_dac_match[] = {
{ .compatible = "nxp,lpc1850-dac" }, { .compatible = "nxp,lpc1850-dac" },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, lpc18xx_dac_match); MODULE_DEVICE_TABLE(of, lpc18xx_dac_match);

View File

@ -219,14 +219,14 @@ static void ltc1660_remove(struct spi_device *spi)
static const struct of_device_id ltc1660_dt_ids[] = { static const struct of_device_id ltc1660_dt_ids[] = {
{ .compatible = "lltc,ltc1660", .data = (void *)ID_LTC1660 }, { .compatible = "lltc,ltc1660", .data = (void *)ID_LTC1660 },
{ .compatible = "lltc,ltc1665", .data = (void *)ID_LTC1665 }, { .compatible = "lltc,ltc1665", .data = (void *)ID_LTC1665 },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, ltc1660_dt_ids); MODULE_DEVICE_TABLE(of, ltc1660_dt_ids);
static const struct spi_device_id ltc1660_id[] = { static const struct spi_device_id ltc1660_id[] = {
{"ltc1660", ID_LTC1660}, {"ltc1660", ID_LTC1660},
{"ltc1665", ID_LTC1665}, {"ltc1665", ID_LTC1665},
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(spi, ltc1660_id); MODULE_DEVICE_TABLE(spi, ltc1660_id);

View File

@ -176,7 +176,7 @@ static const struct iio_chan_spec_ext_info ltc2632_ext_info[] = {
.write = ltc2632_write_dac_powerdown, .write = ltc2632_write_dac_powerdown,
.shared = IIO_SEPARATE, .shared = IIO_SEPARATE,
}, },
{ }, { }
}; };
#define LTC2632_CHANNEL(_chan, _bits) { \ #define LTC2632_CHANNEL(_chan, _bits) { \

View File

@ -137,7 +137,7 @@ static const struct iio_chan_spec_ext_info max5821_ext_info[] = {
}, },
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &max5821_powerdown_mode_enum), IIO_ENUM("powerdown_mode", IIO_SEPARATE, &max5821_powerdown_mode_enum),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &max5821_powerdown_mode_enum), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &max5821_powerdown_mode_enum),
{ }, { }
}; };
#define MAX5821_CHANNEL(chan) { \ #define MAX5821_CHANNEL(chan) { \

View File

@ -241,7 +241,7 @@ static const struct iio_chan_spec_ext_info mcp4725_ext_info[] = {
&mcp472x_powerdown_mode_enum[MCP4725]), &mcp472x_powerdown_mode_enum[MCP4725]),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE,
&mcp472x_powerdown_mode_enum[MCP4725]), &mcp472x_powerdown_mode_enum[MCP4725]),
{ }, { }
}; };
static const struct iio_chan_spec_ext_info mcp4726_ext_info[] = { static const struct iio_chan_spec_ext_info mcp4726_ext_info[] = {
@ -255,7 +255,7 @@ static const struct iio_chan_spec_ext_info mcp4726_ext_info[] = {
&mcp472x_powerdown_mode_enum[MCP4726]), &mcp472x_powerdown_mode_enum[MCP4726]),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE,
&mcp472x_powerdown_mode_enum[MCP4726]), &mcp472x_powerdown_mode_enum[MCP4726]),
{ }, { }
}; };
static const struct iio_chan_spec mcp472x_channel[] = { static const struct iio_chan_spec mcp472x_channel[] = {

View File

@ -286,7 +286,7 @@ static const struct iio_chan_spec_ext_info mcp4728_ext_info[] = {
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &mcp4728_powerdown_mode_enum), IIO_ENUM("powerdown_mode", IIO_SEPARATE, &mcp4728_powerdown_mode_enum),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE,
&mcp4728_powerdown_mode_enum), &mcp4728_powerdown_mode_enum),
{}, { }
}; };
static const struct iio_chan_spec mcp4728_channels[MCP4728_N_CHANNELS] = { static const struct iio_chan_spec mcp4728_channels[MCP4728_N_CHANNELS] = {

View File

@ -206,7 +206,7 @@ static const struct of_device_id mcp4821_of_table[] = {
MCP4821_COMPATIBLE("microchip,mcp4812", ID_MCP4812), MCP4821_COMPATIBLE("microchip,mcp4812", ID_MCP4812),
MCP4821_COMPATIBLE("microchip,mcp4821", ID_MCP4821), MCP4821_COMPATIBLE("microchip,mcp4821", ID_MCP4821),
MCP4821_COMPATIBLE("microchip,mcp4822", ID_MCP4822), MCP4821_COMPATIBLE("microchip,mcp4822", ID_MCP4822),
{ /* Sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, mcp4821_of_table); MODULE_DEVICE_TABLE(of, mcp4821_of_table);
@ -217,7 +217,7 @@ static const struct spi_device_id mcp4821_id_table[] = {
{ "mcp4812", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4812]}, { "mcp4812", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4812]},
{ "mcp4821", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4821]}, { "mcp4821", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4821]},
{ "mcp4822", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4822]}, { "mcp4822", (kernel_ulong_t)&mcp4821_chip_info_table[ID_MCP4822]},
{ /* Sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(spi, mcp4821_id_table); MODULE_DEVICE_TABLE(spi, mcp4821_id_table);

View File

@ -239,7 +239,7 @@ static const struct of_device_id stm32_dac_of_match[] = {
.compatible = "st,stm32h7-dac-core", .compatible = "st,stm32h7-dac-core",
.data = (void *)&stm32h7_dac_cfg, .data = (void *)&stm32h7_dac_cfg,
}, },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, stm32_dac_of_match); MODULE_DEVICE_TABLE(of, stm32_dac_of_match);

View File

@ -250,7 +250,7 @@ static const struct iio_chan_spec_ext_info stm32_dac_ext_info[] = {
}, },
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &stm32_dac_powerdown_mode_en), IIO_ENUM("powerdown_mode", IIO_SEPARATE, &stm32_dac_powerdown_mode_en),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &stm32_dac_powerdown_mode_en), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &stm32_dac_powerdown_mode_en),
{}, { }
}; };
#define STM32_DAC_CHANNEL(chan, name) { \ #define STM32_DAC_CHANNEL(chan, name) { \
@ -392,7 +392,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(stm32_dac_pm_ops, stm32_dac_suspend,
static const struct of_device_id stm32_dac_of_match[] = { static const struct of_device_id stm32_dac_of_match[] = {
{ .compatible = "st,stm32-dac", }, { .compatible = "st,stm32-dac", },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, stm32_dac_of_match); MODULE_DEVICE_TABLE(of, stm32_dac_of_match);

View File

@ -161,7 +161,7 @@ static const struct iio_chan_spec_ext_info ti_dac_ext_info[] = {
}, },
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode), IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode),
{ }, { }
}; };
#define TI_DAC_CHANNEL(chan) { \ #define TI_DAC_CHANNEL(chan) { \

View File

@ -216,7 +216,7 @@ static const struct iio_chan_spec_ext_info dac5571_ext_info[] = {
}, },
IIO_ENUM("powerdown_mode", IIO_SEPARATE, &dac5571_powerdown_mode), IIO_ENUM("powerdown_mode", IIO_SEPARATE, &dac5571_powerdown_mode),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &dac5571_powerdown_mode), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &dac5571_powerdown_mode),
{}, { }
}; };
#define dac5571_CHANNEL(chan, name) { \ #define dac5571_CHANNEL(chan, name) { \

View File

@ -147,7 +147,7 @@ static const struct iio_chan_spec_ext_info ti_dac_ext_info[] = {
}, },
IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode), IIO_ENUM("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode),
IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode), IIO_ENUM_AVAILABLE("powerdown_mode", IIO_SHARED_BY_TYPE, &ti_dac_powerdown_mode),
{ }, { }
}; };
#define TI_DAC_CHANNEL(chan) { \ #define TI_DAC_CHANNEL(chan) { \

View File

@ -174,7 +174,7 @@ static const struct of_device_id dac7612_of_match[] = {
{ .compatible = "ti,dac7612" }, { .compatible = "ti,dac7612" },
{ .compatible = "ti,dac7612u" }, { .compatible = "ti,dac7612u" },
{ .compatible = "ti,dac7612ub" }, { .compatible = "ti,dac7612ub" },
{ }, { }
}; };
MODULE_DEVICE_TABLE(of, dac7612_of_match); MODULE_DEVICE_TABLE(of, dac7612_of_match);

View File

@ -99,7 +99,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, IIO_ENUM("conversion_mode", IIO_SHARED_BY_DIR,
&vf610_conversion_mode), &vf610_conversion_mode),
{}, { }
}; };
#define VF610_DAC_CHAN(_chan_type) { \ #define VF610_DAC_CHAN(_chan_type) { \
@ -166,7 +166,7 @@ static const struct iio_info vf610_dac_iio_info = {
static const struct of_device_id vf610_dac_match[] = { static const struct of_device_id vf610_dac_match[] = {
{ .compatible = "fsl,vf610-dac", }, { .compatible = "fsl,vf610-dac", },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, vf610_dac_match); MODULE_DEVICE_TABLE(of, vf610_dac_match);

View File

@ -602,7 +602,7 @@ static const struct iio_enum admv8818_mode_enum = {
static const struct iio_chan_spec_ext_info admv8818_ext_info[] = { static const struct iio_chan_spec_ext_info admv8818_ext_info[] = {
IIO_ENUM("filter_mode", IIO_SHARED_BY_ALL, &admv8818_mode_enum), IIO_ENUM("filter_mode", IIO_SHARED_BY_ALL, &admv8818_mode_enum),
IIO_ENUM_AVAILABLE("filter_mode", IIO_SHARED_BY_ALL, &admv8818_mode_enum), IIO_ENUM_AVAILABLE("filter_mode", IIO_SHARED_BY_ALL, &admv8818_mode_enum),
{ }, { }
}; };
#define ADMV8818_CHAN(_channel) { \ #define ADMV8818_CHAN(_channel) { \

View File

@ -373,7 +373,7 @@ static const struct iio_chan_spec_ext_info adf4350_ext_info[] = {
_ADF4350_EXT_INFO("frequency_resolution", ADF4350_FREQ_RESOLUTION), _ADF4350_EXT_INFO("frequency_resolution", ADF4350_FREQ_RESOLUTION),
_ADF4350_EXT_INFO("refin_frequency", ADF4350_FREQ_REFIN), _ADF4350_EXT_INFO("refin_frequency", ADF4350_FREQ_REFIN),
_ADF4350_EXT_INFO("powerdown", ADF4350_PWRDOWN), _ADF4350_EXT_INFO("powerdown", ADF4350_PWRDOWN),
{ }, { }
}; };
static const struct iio_chan_spec adf4350_chan = { static const struct iio_chan_spec adf4350_chan = {
@ -682,7 +682,7 @@ static int adf4350_probe(struct spi_device *spi)
static const struct of_device_id adf4350_of_match[] = { static const struct of_device_id adf4350_of_match[] = {
{ .compatible = "adi,adf4350", }, { .compatible = "adi,adf4350", },
{ .compatible = "adi,adf4351", }, { .compatible = "adi,adf4351", },
{ /* sentinel */ }, { }
}; };
MODULE_DEVICE_TABLE(of, adf4350_of_match); MODULE_DEVICE_TABLE(of, adf4350_of_match);

View File

@ -438,7 +438,7 @@ static const struct iio_chan_spec_ext_info adf4371_ext_info[] = {
_ADF4371_EXT_INFO("frequency", ADF4371_FREQ), _ADF4371_EXT_INFO("frequency", ADF4371_FREQ),
_ADF4371_EXT_INFO("powerdown", ADF4371_POWER_DOWN), _ADF4371_EXT_INFO("powerdown", ADF4371_POWER_DOWN),
_ADF4371_EXT_INFO("name", ADF4371_CHANNEL_NAME), _ADF4371_EXT_INFO("name", ADF4371_CHANNEL_NAME),
{ }, { }
}; };
#define ADF4371_CHANNEL(index) { \ #define ADF4371_CHANNEL(index) { \
@ -633,7 +633,7 @@ MODULE_DEVICE_TABLE(spi, adf4371_id_table);
static const struct of_device_id adf4371_of_match[] = { static const struct of_device_id adf4371_of_match[] = {
{ .compatible = "adi,adf4371", .data = &adf4371_chip_info }, { .compatible = "adi,adf4371", .data = &adf4371_chip_info },
{ .compatible = "adi,adf4372", .data = &adf4372_chip_info}, { .compatible = "adi,adf4372", .data = &adf4372_chip_info},
{ }, { }
}; };
MODULE_DEVICE_TABLE(of, adf4371_of_match); MODULE_DEVICE_TABLE(of, adf4371_of_match);

View File

@ -407,7 +407,7 @@ static int admv1013_freq_change(struct notifier_block *nb, unsigned long action,
static const struct iio_chan_spec_ext_info admv1013_ext_info[] = { static const struct iio_chan_spec_ext_info admv1013_ext_info[] = {
_ADMV1013_EXT_INFO("i_calibphase", IIO_SEPARATE, ADMV1013_RFMOD_I_CALIBPHASE), _ADMV1013_EXT_INFO("i_calibphase", IIO_SEPARATE, ADMV1013_RFMOD_I_CALIBPHASE),
_ADMV1013_EXT_INFO("q_calibphase", IIO_SEPARATE, ADMV1013_RFMOD_Q_CALIBPHASE), _ADMV1013_EXT_INFO("q_calibphase", IIO_SEPARATE, ADMV1013_RFMOD_Q_CALIBPHASE),
{ }, { }
}; };
#define ADMV1013_CHAN_PHASE(_channel, _channel2, _admv1013_ext_info) { \ #define ADMV1013_CHAN_PHASE(_channel, _channel2, _admv1013_ext_info) { \
@ -621,7 +621,7 @@ MODULE_DEVICE_TABLE(spi, admv1013_id);
static const struct of_device_id admv1013_of_match[] = { static const struct of_device_id admv1013_of_match[] = {
{ .compatible = "adi,admv1013" }, { .compatible = "adi,admv1013" },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, admv1013_of_match); MODULE_DEVICE_TABLE(of, admv1013_of_match);

View File

@ -214,7 +214,7 @@ static int adis16080_probe(struct spi_device *spi)
static const struct spi_device_id adis16080_ids[] = { static const struct spi_device_id adis16080_ids[] = {
{ "adis16080", ID_ADIS16080 }, { "adis16080", ID_ADIS16080 },
{ "adis16100", ID_ADIS16100 }, { "adis16100", ID_ADIS16100 },
{}, { }
}; };
MODULE_DEVICE_TABLE(spi, adis16080_ids); MODULE_DEVICE_TABLE(spi, adis16080_ids);

View File

@ -41,7 +41,7 @@ static void bmg160_i2c_remove(struct i2c_client *client)
static const struct acpi_device_id bmg160_acpi_match[] = { static const struct acpi_device_id bmg160_acpi_match[] = {
{"BMG0160", 0}, {"BMG0160", 0},
{}, { }
}; };
MODULE_DEVICE_TABLE(acpi, bmg160_acpi_match); MODULE_DEVICE_TABLE(acpi, bmg160_acpi_match);

View File

@ -375,7 +375,7 @@ static const struct platform_device_id hid_gyro_3d_ids[] = {
/* Format: HID-SENSOR-usage_id_in_hex_lowercase */ /* Format: HID-SENSOR-usage_id_in_hex_lowercase */
.name = "HID-SENSOR-200076", .name = "HID-SENSOR-200076",
}, },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(platform, hid_gyro_3d_ids); MODULE_DEVICE_TABLE(platform, hid_gyro_3d_ids);

View File

@ -684,7 +684,7 @@ mpu3050_get_mount_matrix(const struct iio_dev *indio_dev,
static const struct iio_chan_spec_ext_info mpu3050_ext_info[] = { static const struct iio_chan_spec_ext_info mpu3050_ext_info[] = {
IIO_MOUNT_MATRIX(IIO_SHARED_BY_TYPE, mpu3050_get_mount_matrix), IIO_MOUNT_MATRIX(IIO_SHARED_BY_TYPE, mpu3050_get_mount_matrix),
{ }, { }
}; };
#define MPU3050_AXIS_CHANNEL(axis, index) \ #define MPU3050_AXIS_CHANNEL(axis, index) \

View File

@ -103,7 +103,7 @@ static const struct of_device_id mpu3050_i2c_of_match[] = {
{ .compatible = "invensense,mpu3050", .data = "mpu3050" }, { .compatible = "invensense,mpu3050", .data = "mpu3050" },
/* Deprecated vendor ID from the Input driver */ /* Deprecated vendor ID from the Input driver */
{ .compatible = "invn,mpu3050", .data = "mpu3050" }, { .compatible = "invn,mpu3050", .data = "mpu3050" },
{ }, { }
}; };
MODULE_DEVICE_TABLE(of, mpu3050_i2c_of_match); MODULE_DEVICE_TABLE(of, mpu3050_i2c_of_match);

View File

@ -54,7 +54,7 @@ static const struct of_device_id st_gyro_of_match[] = {
.compatible = "st,lsm9ds0-gyro", .compatible = "st,lsm9ds0-gyro",
.data = LSM9DS0_GYRO_DEV_NAME, .data = LSM9DS0_GYRO_DEV_NAME,
}, },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, st_gyro_of_match); MODULE_DEVICE_TABLE(of, st_gyro_of_match);
@ -102,7 +102,7 @@ static const struct i2c_device_id st_gyro_id_table[] = {
{ L3G4IS_GYRO_DEV_NAME }, { L3G4IS_GYRO_DEV_NAME },
{ LSM330_GYRO_DEV_NAME }, { LSM330_GYRO_DEV_NAME },
{ LSM9DS0_GYRO_DEV_NAME }, { LSM9DS0_GYRO_DEV_NAME },
{}, { }
}; };
MODULE_DEVICE_TABLE(i2c, st_gyro_id_table); MODULE_DEVICE_TABLE(i2c, st_gyro_id_table);

View File

@ -59,7 +59,7 @@ static const struct of_device_id st_gyro_of_match[] = {
.compatible = "st,lsm9ds0-gyro", .compatible = "st,lsm9ds0-gyro",
.data = LSM9DS0_GYRO_DEV_NAME, .data = LSM9DS0_GYRO_DEV_NAME,
}, },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, st_gyro_of_match); MODULE_DEVICE_TABLE(of, st_gyro_of_match);
@ -107,7 +107,7 @@ static const struct spi_device_id st_gyro_id_table[] = {
{ L3G4IS_GYRO_DEV_NAME }, { L3G4IS_GYRO_DEV_NAME },
{ LSM330_GYRO_DEV_NAME }, { LSM330_GYRO_DEV_NAME },
{ LSM9DS0_GYRO_DEV_NAME }, { LSM9DS0_GYRO_DEV_NAME },
{}, { }
}; };
MODULE_DEVICE_TABLE(spi, st_gyro_id_table); MODULE_DEVICE_TABLE(spi, st_gyro_id_table);

View File

@ -411,7 +411,7 @@ static const struct regmap_config afe4403_regmap_config = {
static const struct of_device_id afe4403_of_match[] = { static const struct of_device_id afe4403_of_match[] = {
{ .compatible = "ti,afe4403", }, { .compatible = "ti,afe4403", },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, afe4403_of_match); MODULE_DEVICE_TABLE(of, afe4403_of_match);
@ -574,7 +574,7 @@ static int afe4403_probe(struct spi_device *spi)
static const struct spi_device_id afe4403_ids[] = { static const struct spi_device_id afe4403_ids[] = {
{ "afe4403", 0 }, { "afe4403", 0 },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(spi, afe4403_ids); MODULE_DEVICE_TABLE(spi, afe4403_ids);

View File

@ -419,7 +419,7 @@ static const struct regmap_config afe4404_regmap_config = {
static const struct of_device_id afe4404_of_match[] = { static const struct of_device_id afe4404_of_match[] = {
{ .compatible = "ti,afe4404", }, { .compatible = "ti,afe4404", },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(of, afe4404_of_match); MODULE_DEVICE_TABLE(of, afe4404_of_match);
@ -581,7 +581,7 @@ static int afe4404_probe(struct i2c_client *client)
static const struct i2c_device_id afe4404_ids[] = { static const struct i2c_device_id afe4404_ids[] = {
{ "afe4404" }, { "afe4404" },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(i2c, afe4404_ids); MODULE_DEVICE_TABLE(i2c, afe4404_ids);

View File

@ -276,7 +276,7 @@ static const struct platform_device_id hid_humidity_ids[] = {
/* Format: HID-SENSOR-usage_id_in_hex_lowercase */ /* Format: HID-SENSOR-usage_id_in_hex_lowercase */
.name = "HID-SENSOR-200032", .name = "HID-SENSOR-200032",
}, },
{ /* sentinel */ } { }
}; };
MODULE_DEVICE_TABLE(platform, hid_humidity_ids); MODULE_DEVICE_TABLE(platform, hid_humidity_ids);

View File

@ -42,19 +42,19 @@ static int hts221_i2c_probe(struct i2c_client *client)
static const struct acpi_device_id hts221_acpi_match[] = { static const struct acpi_device_id hts221_acpi_match[] = {
{"SMO9100", 0}, {"SMO9100", 0},
{ }, { }
}; };
MODULE_DEVICE_TABLE(acpi, hts221_acpi_match); MODULE_DEVICE_TABLE(acpi, hts221_acpi_match);
static const struct of_device_id hts221_i2c_of_match[] = { static const struct of_device_id hts221_i2c_of_match[] = {
{ .compatible = "st,hts221", }, { .compatible = "st,hts221", },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, hts221_i2c_of_match); MODULE_DEVICE_TABLE(of, hts221_i2c_of_match);
static const struct i2c_device_id hts221_i2c_id_table[] = { static const struct i2c_device_id hts221_i2c_id_table[] = {
{ HTS221_DEV_NAME }, { HTS221_DEV_NAME },
{}, { }
}; };
MODULE_DEVICE_TABLE(i2c, hts221_i2c_id_table); MODULE_DEVICE_TABLE(i2c, hts221_i2c_id_table);

View File

@ -42,13 +42,13 @@ static int hts221_spi_probe(struct spi_device *spi)
static const struct of_device_id hts221_spi_of_match[] = { static const struct of_device_id hts221_spi_of_match[] = {
{ .compatible = "st,hts221", }, { .compatible = "st,hts221", },
{}, { }
}; };
MODULE_DEVICE_TABLE(of, hts221_spi_of_match); MODULE_DEVICE_TABLE(of, hts221_spi_of_match);
static const struct spi_device_id hts221_spi_id_table[] = { static const struct spi_device_id hts221_spi_id_table[] = {
{ HTS221_DEV_NAME }, { HTS221_DEV_NAME },
{}, { }
}; };
MODULE_DEVICE_TABLE(spi, hts221_spi_id_table); MODULE_DEVICE_TABLE(spi, hts221_spi_id_table);

View File

@ -239,7 +239,7 @@ MODULE_DEVICE_TABLE(i2c, htu21_id);
static const struct of_device_id htu21_of_match[] = { static const struct of_device_id htu21_of_match[] = {
{ .compatible = "meas,htu21", }, { .compatible = "meas,htu21", },
{ .compatible = "meas,ms8607-humidity", }, { .compatible = "meas,ms8607-humidity", },
{ }, { }
}; };
MODULE_DEVICE_TABLE(of, htu21_of_match); MODULE_DEVICE_TABLE(of, htu21_of_match);

Some files were not shown because too many files have changed in this diff Show More