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