Commit 55e4390c authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Greg Kroah-Hartman

staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS

Quite a few iio drivers provide no MODULE_DEVICE_TABLE or MODULE_ALIAS or only
provide a MODULE_ALIAS while they have support for multiple device ids. This
prevents auto module loading from working correctly.

This patch fixes it by adding the missing MODULE_DEVICE_TABLEs and
MODULE_ALIAS'.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 275de9f7
...@@ -564,3 +564,4 @@ module_exit(adis16201_exit); ...@@ -564,3 +564,4 @@ module_exit(adis16201_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16201 Programmable Digital Vibration Sensor driver"); MODULE_DESCRIPTION("Analog Devices ADIS16201 Programmable Digital Vibration Sensor driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16201");
...@@ -519,3 +519,4 @@ module_exit(adis16203_exit); ...@@ -519,3 +519,4 @@ module_exit(adis16203_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16203 Programmable Digital Vibration Sensor driver"); MODULE_DESCRIPTION("Analog Devices ADIS16203 Programmable Digital Vibration Sensor driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16203");
...@@ -593,3 +593,4 @@ module_exit(adis16204_exit); ...@@ -593,3 +593,4 @@ module_exit(adis16204_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("ADIS16204 High-g Digital Impact Sensor and Recorder"); MODULE_DESCRIPTION("ADIS16204 High-g Digital Impact Sensor and Recorder");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16204");
...@@ -568,3 +568,4 @@ module_exit(adis16209_exit); ...@@ -568,3 +568,4 @@ module_exit(adis16209_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16209 Digital Vibration Sensor driver"); MODULE_DESCRIPTION("Analog Devices ADIS16209 Digital Vibration Sensor driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16209");
...@@ -724,3 +724,4 @@ module_exit(adis16220_exit); ...@@ -724,3 +724,4 @@ module_exit(adis16220_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16220 Digital Vibration Sensor"); MODULE_DESCRIPTION("Analog Devices ADIS16220 Digital Vibration Sensor");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16220");
...@@ -621,3 +621,4 @@ module_exit(adis16240_exit); ...@@ -621,3 +621,4 @@ module_exit(adis16240_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices Programmable Impact Sensor and Recorder"); MODULE_DESCRIPTION("Analog Devices Programmable Impact Sensor and Recorder");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16240");
...@@ -268,8 +268,10 @@ static int __devexit kxsd9_remove(struct spi_device *spi) ...@@ -268,8 +268,10 @@ static int __devexit kxsd9_remove(struct spi_device *spi)
} }
static const struct spi_device_id kxsd9_id[] = { static const struct spi_device_id kxsd9_id[] = {
{"kxsd9", 0} {"kxsd9", 0},
{ },
}; };
MODULE_DEVICE_TABLE(spi, kxsd9_id);
static struct spi_driver kxsd9_driver = { static struct spi_driver kxsd9_driver = {
.driver = { .driver = {
......
...@@ -821,3 +821,4 @@ module_exit(lis3l02dq_exit); ...@@ -821,3 +821,4 @@ module_exit(lis3l02dq_exit);
MODULE_AUTHOR("Jonathan Cameron <jic23@cam.ac.uk>"); MODULE_AUTHOR("Jonathan Cameron <jic23@cam.ac.uk>");
MODULE_DESCRIPTION("ST LIS3L02DQ Accelerometer SPI driver"); MODULE_DESCRIPTION("ST LIS3L02DQ Accelerometer SPI driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:lis3l02dq");
...@@ -1241,6 +1241,7 @@ static const struct spi_device_id sca3000_id[] = { ...@@ -1241,6 +1241,7 @@ static const struct spi_device_id sca3000_id[] = {
{"sca3000_e05", e05}, {"sca3000_e05", e05},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, sca3000_id);
static struct spi_driver sca3000_driver = { static struct spi_driver sca3000_driver = {
.driver = { .driver = {
......
...@@ -1153,6 +1153,7 @@ static const struct spi_device_id ad7192_id[] = { ...@@ -1153,6 +1153,7 @@ static const struct spi_device_id ad7192_id[] = {
{"ad7195", ID_AD7195}, {"ad7195", ID_AD7195},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7192_id);
static struct spi_driver ad7192_driver = { static struct spi_driver ad7192_driver = {
.driver = { .driver = {
......
...@@ -970,6 +970,7 @@ static const struct spi_device_id ad7280_id[] = { ...@@ -970,6 +970,7 @@ static const struct spi_device_id ad7280_id[] = {
{"ad7280a", 0}, {"ad7280a", 0},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7280_id);
static struct spi_driver ad7280_driver = { static struct spi_driver ad7280_driver = {
.driver = { .driver = {
......
...@@ -270,6 +270,7 @@ static const struct spi_device_id ad7298_id[] = { ...@@ -270,6 +270,7 @@ static const struct spi_device_id ad7298_id[] = {
{"ad7298", 0}, {"ad7298", 0},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7298_id);
static struct spi_driver ad7298_driver = { static struct spi_driver ad7298_driver = {
.driver = { .driver = {
...@@ -297,4 +298,3 @@ module_exit(ad7298_exit); ...@@ -297,4 +298,3 @@ module_exit(ad7298_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7298 ADC"); MODULE_DESCRIPTION("Analog Devices AD7298 ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7298");
...@@ -237,6 +237,7 @@ static const struct spi_device_id ad7476_id[] = { ...@@ -237,6 +237,7 @@ static const struct spi_device_id ad7476_id[] = {
{"ad7495", ID_AD7495}, {"ad7495", ID_AD7495},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7476_id);
static struct spi_driver ad7476_driver = { static struct spi_driver ad7476_driver = {
.driver = { .driver = {
...@@ -264,4 +265,3 @@ module_exit(ad7476_exit); ...@@ -264,4 +265,3 @@ module_exit(ad7476_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7475/6/7/8(A) AD7466/7/8 ADC"); MODULE_DESCRIPTION("Analog Devices AD7475/6/7/8(A) AD7466/7/8 ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7476");
...@@ -189,4 +189,3 @@ module_exit(ad7606_cleanup); ...@@ -189,4 +189,3 @@ module_exit(ad7606_cleanup);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7606 ADC"); MODULE_DESCRIPTION("Analog Devices AD7606 ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:ad7606_par");
...@@ -97,6 +97,7 @@ static const struct spi_device_id ad7606_id[] = { ...@@ -97,6 +97,7 @@ static const struct spi_device_id ad7606_id[] = {
{"ad7606-4", ID_AD7606_4}, {"ad7606-4", ID_AD7606_4},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7606_id);
static struct spi_driver ad7606_driver = { static struct spi_driver ad7606_driver = {
.driver = { .driver = {
...@@ -125,4 +126,3 @@ module_exit(ad7606_spi_exit); ...@@ -125,4 +126,3 @@ module_exit(ad7606_spi_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7606 ADC"); MODULE_DESCRIPTION("Analog Devices AD7606 ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7606_spi");
...@@ -272,6 +272,7 @@ static const struct spi_device_id ad7780_id[] = { ...@@ -272,6 +272,7 @@ static const struct spi_device_id ad7780_id[] = {
{"ad7781", ID_AD7781}, {"ad7781", ID_AD7781},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7780_id);
static struct spi_driver ad7780_driver = { static struct spi_driver ad7780_driver = {
.driver = { .driver = {
......
...@@ -1036,6 +1036,7 @@ static const struct spi_device_id ad7793_id[] = { ...@@ -1036,6 +1036,7 @@ static const struct spi_device_id ad7793_id[] = {
{"ad7793", ID_AD7793}, {"ad7793", ID_AD7793},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7793_id);
static struct spi_driver ad7793_driver = { static struct spi_driver ad7793_driver = {
.driver = { .driver = {
......
...@@ -246,6 +246,7 @@ static const struct spi_device_id ad7887_id[] = { ...@@ -246,6 +246,7 @@ static const struct spi_device_id ad7887_id[] = {
{"ad7887", ID_AD7887}, {"ad7887", ID_AD7887},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad7887_id);
static struct spi_driver ad7887_driver = { static struct spi_driver ad7887_driver = {
.driver = { .driver = {
...@@ -273,4 +274,3 @@ module_exit(ad7887_exit); ...@@ -273,4 +274,3 @@ module_exit(ad7887_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7887 ADC"); MODULE_DESCRIPTION("Analog Devices AD7887 ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7887");
...@@ -944,7 +944,6 @@ static __exit void ad799x_exit(void) ...@@ -944,7 +944,6 @@ static __exit void ad799x_exit(void)
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD799x ADC"); MODULE_DESCRIPTION("Analog Devices AD799x ADC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("i2c:ad799x");
module_init(ad799x_init); module_init(ad799x_init);
module_exit(ad799x_exit); module_exit(ad799x_exit);
...@@ -435,6 +435,7 @@ static const struct spi_device_id ad5446_id[] = { ...@@ -435,6 +435,7 @@ static const struct spi_device_id ad5446_id[] = {
{"ad5660-1250", ID_AD5660_1250}, {"ad5660-1250", ID_AD5660_1250},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad5446_id);
static struct spi_driver ad5446_driver = { static struct spi_driver ad5446_driver = {
.driver = { .driver = {
...@@ -462,4 +463,3 @@ module_exit(ad5446_exit); ...@@ -462,4 +463,3 @@ module_exit(ad5446_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD5444/AD5446 DAC"); MODULE_DESCRIPTION("Analog Devices AD5444/AD5446 DAC");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad5446");
...@@ -378,6 +378,7 @@ static const struct spi_device_id ad5504_id[] = { ...@@ -378,6 +378,7 @@ static const struct spi_device_id ad5504_id[] = {
{"ad5501", ID_AD5501}, {"ad5501", ID_AD5501},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad5504_id);
static struct spi_driver ad5504_driver = { static struct spi_driver ad5504_driver = {
.driver = { .driver = {
......
...@@ -335,6 +335,7 @@ static const struct spi_device_id ad5624r_id[] = { ...@@ -335,6 +335,7 @@ static const struct spi_device_id ad5624r_id[] = {
{"ad5664r5", ID_AD5664R5}, {"ad5664r5", ID_AD5664R5},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad5624r_id);
static struct spi_driver ad5624r_driver = { static struct spi_driver ad5624r_driver = {
.driver = { .driver = {
......
...@@ -437,6 +437,7 @@ static const struct spi_device_id ad5686_id[] = { ...@@ -437,6 +437,7 @@ static const struct spi_device_id ad5686_id[] = {
{"ad5686", ID_AD5686}, {"ad5686", ID_AD5686},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad5686_id);
static struct spi_driver ad5686_driver = { static struct spi_driver ad5686_driver = {
.driver = { .driver = {
......
...@@ -400,6 +400,7 @@ static const struct spi_device_id ad5791_id[] = { ...@@ -400,6 +400,7 @@ static const struct spi_device_id ad5791_id[] = {
{"ad5791", ID_AD5791}, {"ad5791", ID_AD5791},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad5791_id);
static struct spi_driver ad5791_driver = { static struct spi_driver ad5791_driver = {
.driver = { .driver = {
......
...@@ -159,3 +159,4 @@ module_exit(ad5930_spi_exit); ...@@ -159,3 +159,4 @@ module_exit(ad5930_spi_exit);
MODULE_AUTHOR("Cliff Cai"); MODULE_AUTHOR("Cliff Cai");
MODULE_DESCRIPTION("Analog Devices ad5930 driver"); MODULE_DESCRIPTION("Analog Devices ad5930 driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:" DRV_NAME);
...@@ -344,6 +344,7 @@ static const struct spi_device_id ad9832_id[] = { ...@@ -344,6 +344,7 @@ static const struct spi_device_id ad9832_id[] = {
{"ad9835", 0}, {"ad9835", 0},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad9832_id);
static struct spi_driver ad9832_driver = { static struct spi_driver ad9832_driver = {
.driver = { .driver = {
...@@ -371,4 +372,3 @@ module_exit(ad9832_exit); ...@@ -371,4 +372,3 @@ module_exit(ad9832_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD9832/AD9835 DDS"); MODULE_DESCRIPTION("Analog Devices AD9832/AD9835 DDS");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad9832");
...@@ -435,6 +435,7 @@ static const struct spi_device_id ad9834_id[] = { ...@@ -435,6 +435,7 @@ static const struct spi_device_id ad9834_id[] = {
{"ad9838", ID_AD9838}, {"ad9838", ID_AD9838},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad9834_id);
static struct spi_driver ad9834_driver = { static struct spi_driver ad9834_driver = {
.driver = { .driver = {
...@@ -462,4 +463,3 @@ module_exit(ad9834_exit); ...@@ -462,4 +463,3 @@ module_exit(ad9834_exit);
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD9833/AD9834/AD9837/AD9838 DDS"); MODULE_DESCRIPTION("Analog Devices AD9833/AD9834/AD9837/AD9838 DDS");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad9834");
...@@ -145,3 +145,4 @@ module_exit(ad9850_spi_exit); ...@@ -145,3 +145,4 @@ module_exit(ad9850_spi_exit);
MODULE_AUTHOR("Cliff Cai"); MODULE_AUTHOR("Cliff Cai");
MODULE_DESCRIPTION("Analog Devices ad9850 driver"); MODULE_DESCRIPTION("Analog Devices ad9850 driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:" DRV_NAME);
...@@ -296,3 +296,4 @@ module_exit(ad9852_spi_exit); ...@@ -296,3 +296,4 @@ module_exit(ad9852_spi_exit);
MODULE_AUTHOR("Cliff Cai"); MODULE_AUTHOR("Cliff Cai");
MODULE_DESCRIPTION("Analog Devices ad9852 driver"); MODULE_DESCRIPTION("Analog Devices ad9852 driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:" DRV_NAME);
...@@ -429,3 +429,4 @@ module_exit(ad9910_spi_exit); ...@@ -429,3 +429,4 @@ module_exit(ad9910_spi_exit);
MODULE_AUTHOR("Cliff Cai"); MODULE_AUTHOR("Cliff Cai");
MODULE_DESCRIPTION("Analog Devices ad9910 driver"); MODULE_DESCRIPTION("Analog Devices ad9910 driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:" DRV_NAME);
...@@ -240,3 +240,4 @@ module_exit(ad9951_spi_exit); ...@@ -240,3 +240,4 @@ module_exit(ad9951_spi_exit);
MODULE_AUTHOR("Cliff Cai"); MODULE_AUTHOR("Cliff Cai");
MODULE_DESCRIPTION("Analog Devices ad9951 driver"); MODULE_DESCRIPTION("Analog Devices ad9951 driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:" DRV_NAME);
...@@ -205,3 +205,4 @@ module_exit(adis16080_exit); ...@@ -205,3 +205,4 @@ module_exit(adis16080_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16080/100 Yaw Rate Gyroscope Driver"); MODULE_DESCRIPTION("Analog Devices ADIS16080/100 Yaw Rate Gyroscope Driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16080");
...@@ -184,3 +184,4 @@ module_exit(adis16130_exit); ...@@ -184,3 +184,4 @@ module_exit(adis16130_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADIS16130 High Precision Angular Rate"); MODULE_DESCRIPTION("Analog Devices ADIS16130 High Precision Angular Rate");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adis16130");
...@@ -700,6 +700,7 @@ static const struct spi_device_id adis16260_id[] = { ...@@ -700,6 +700,7 @@ static const struct spi_device_id adis16260_id[] = {
{"adis16251", 1}, {"adis16251", 1},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, adis16260_id);
static struct spi_driver adis16260_driver = { static struct spi_driver adis16260_driver = {
.driver = { .driver = {
......
...@@ -397,3 +397,4 @@ module_exit(adxrs450_exit); ...@@ -397,3 +397,4 @@ module_exit(adxrs450_exit);
MODULE_AUTHOR("Cliff Cai <cliff.cai@xxxxxxxxxx>"); MODULE_AUTHOR("Cliff Cai <cliff.cai@xxxxxxxxxx>");
MODULE_DESCRIPTION("Analog Devices ADXRS450 Gyroscope SPI driver"); MODULE_DESCRIPTION("Analog Devices ADXRS450 Gyroscope SPI driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:adxrs450");
...@@ -1117,6 +1117,7 @@ static const struct spi_device_id adis16400_id[] = { ...@@ -1117,6 +1117,7 @@ static const struct spi_device_id adis16400_id[] = {
{"adis16405", ADIS16400}, {"adis16405", ADIS16400},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, adis16400_id);
static struct spi_driver adis16400_driver = { static struct spi_driver adis16400_driver = {
.driver = { .driver = {
......
...@@ -605,6 +605,7 @@ static const struct i2c_device_id hmc5843_id[] = { ...@@ -605,6 +605,7 @@ static const struct i2c_device_id hmc5843_id[] = {
{ "hmc5843", 0 }, { "hmc5843", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, hmc5843_id);
static struct i2c_driver hmc5843_driver = { static struct i2c_driver hmc5843_driver = {
.driver = { .driver = {
......
...@@ -593,3 +593,4 @@ module_exit(ade7753_exit); ...@@ -593,3 +593,4 @@ module_exit(ade7753_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADE7753/6 Single-Phase Multifunction Meter"); MODULE_DESCRIPTION("Analog Devices ADE7753/6 Single-Phase Multifunction Meter");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ade7753");
...@@ -616,3 +616,4 @@ module_exit(ade7754_exit); ...@@ -616,3 +616,4 @@ module_exit(ade7754_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADE7754 Polyphase Multifunction Energy Metering IC Driver"); MODULE_DESCRIPTION("Analog Devices ADE7754 Polyphase Multifunction Energy Metering IC Driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7754");
...@@ -843,6 +843,7 @@ static const struct spi_device_id ade7758_id[] = { ...@@ -843,6 +843,7 @@ static const struct spi_device_id ade7758_id[] = {
{"ade7758", 0}, {"ade7758", 0},
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ade7758_id);
static struct spi_driver ade7758_driver = { static struct spi_driver ade7758_driver = {
.driver = { .driver = {
......
...@@ -537,3 +537,4 @@ module_exit(ade7759_exit); ...@@ -537,3 +537,4 @@ module_exit(ade7759_exit);
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
MODULE_DESCRIPTION("Analog Devices ADE7759 Active Energy Metering IC Driver"); MODULE_DESCRIPTION("Analog Devices ADE7759 Active Energy Metering IC Driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_ALIAS("spi:ad7759");
...@@ -343,6 +343,7 @@ static const struct spi_device_id ade7854_id[] = { ...@@ -343,6 +343,7 @@ static const struct spi_device_id ade7854_id[] = {
{ "ade7878", 0 }, { "ade7878", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(spi, ade7854_id);
static struct spi_driver ade7854_driver = { static struct spi_driver ade7854_driver = {
.driver = { .driver = {
......
...@@ -160,6 +160,7 @@ static const struct spi_device_id ad2s1200_id[] = { ...@@ -160,6 +160,7 @@ static const struct spi_device_id ad2s1200_id[] = {
{ "ad2s1205" }, { "ad2s1205" },
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad2s1200_id);
static struct spi_driver ad2s1200_driver = { static struct spi_driver ad2s1200_driver = {
.driver = { .driver = {
......
...@@ -749,6 +749,7 @@ static const struct spi_device_id ad2s1210_id[] = { ...@@ -749,6 +749,7 @@ static const struct spi_device_id ad2s1210_id[] = {
{ "ad2s1210" }, { "ad2s1210" },
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad2s1210_id);
static struct spi_driver ad2s1210_driver = { static struct spi_driver ad2s1210_driver = {
.driver = { .driver = {
......
...@@ -109,6 +109,7 @@ static const struct spi_device_id ad2s90_id[] = { ...@@ -109,6 +109,7 @@ static const struct spi_device_id ad2s90_id[] = {
{ "ad2s90" }, { "ad2s90" },
{} {}
}; };
MODULE_DEVICE_TABLE(spi, ad2s90_id);
static struct spi_driver ad2s90_driver = { static struct spi_driver ad2s90_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment