mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 01:20:55 +07:00
spi: prefix modalias with "spi:"
This makes it consistent with other buses (platform, i2c, vio, ...). I'm not sure why we use the prefixes, but there must be a reason. This was easy enough to do it, and I did it. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Jean Delvare <khali@linux-fr.org> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Samuel Ortiz <sameo@openedhand.com> Cc: "John W. Linville" <linville@tuxdriver.com> Acked-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8cec03eee4
commit
e0626e3844
@ -339,3 +339,4 @@ module_exit(max7301_exit);
|
||||
MODULE_AUTHOR("Juergen Beisert");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("MAX7301 SPI based GPIO-Expander");
|
||||
MODULE_ALIAS("spi:" DRIVER_NAME);
|
||||
|
@ -433,3 +433,4 @@ static void __exit mcp23s08_exit(void)
|
||||
module_exit(mcp23s08_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:mcp23s08");
|
||||
|
@ -139,4 +139,4 @@ module_exit(lis302dl_exit);
|
||||
MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
|
||||
MODULE_DESCRIPTION("lis3lv02d SPI glue layer");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
MODULE_ALIAS("spi:" DRV_NAME);
|
||||
|
@ -242,3 +242,4 @@ module_exit(max1111_exit);
|
||||
MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>");
|
||||
MODULE_DESCRIPTION("MAX1111 ADC Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:max1111");
|
||||
|
@ -842,3 +842,4 @@ module_exit(ad7877_exit);
|
||||
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
|
||||
MODULE_DESCRIPTION("AD7877 touchscreen Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:ad7877");
|
||||
|
@ -779,3 +779,4 @@ module_exit(ad7879_exit);
|
||||
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
|
||||
MODULE_DESCRIPTION("AD7879(-1) touchscreen Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:ad7879");
|
||||
|
@ -1256,3 +1256,4 @@ module_exit(ads7846_exit);
|
||||
|
||||
MODULE_DESCRIPTION("ADS7846 TouchScreen Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:ads7846");
|
||||
|
@ -148,3 +148,4 @@ module_exit(dac124s085_leds_exit);
|
||||
MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>");
|
||||
MODULE_DESCRIPTION("DAC124S085 LED driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("spi:dac124s085");
|
||||
|
@ -548,3 +548,4 @@ module_exit(ezx_pcap_exit);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Daniel Ribeiro / Harald Welte");
|
||||
MODULE_DESCRIPTION("Motorola PCAP2 ASIC Driver");
|
||||
MODULE_ALIAS("spi:ezx-pcap");
|
||||
|
@ -417,4 +417,4 @@ module_exit(at25_exit);
|
||||
MODULE_DESCRIPTION("Driver for most SPI EEPROMs");
|
||||
MODULE_AUTHOR("David Brownell");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
MODULE_ALIAS("spi:at25");
|
||||
|
@ -1562,3 +1562,4 @@ MODULE_AUTHOR("Mike Lavender, David Brownell, "
|
||||
"Hans-Peter Nilsson, Jan Nikitenko");
|
||||
MODULE_DESCRIPTION("SPI SD/MMC host driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:mmc_spi");
|
||||
|
@ -966,3 +966,4 @@ module_exit(dataflash_exit);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Andrew Victor, David Brownell");
|
||||
MODULE_DESCRIPTION("MTD DataFlash driver");
|
||||
MODULE_ALIAS("spi:mtd_dataflash");
|
||||
|
@ -1666,3 +1666,4 @@ MODULE_AUTHOR("Claudio Lanconelli <lanconelli.claudio@eptar.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
module_param_named(debug, debug.msg_enable, int, 0);
|
||||
MODULE_PARM_DESC(debug, "Debug verbosity level (0=none, ..., ffff=all)");
|
||||
MODULE_ALIAS("spi:" DRV_NAME);
|
||||
|
@ -1321,3 +1321,4 @@ MODULE_LICENSE("GPL");
|
||||
|
||||
module_param_named(message, msg_enable, int, 0);
|
||||
MODULE_PARM_DESC(message, "Message verbosity level (0=none, 31=all)");
|
||||
MODULE_ALIAS("spi:ks8851");
|
||||
|
@ -1222,3 +1222,4 @@ MODULE_DESCRIPTION("Libertas SPI WLAN Driver");
|
||||
MODULE_AUTHOR("Andrey Yurovsky <andrey@cozybit.com>, "
|
||||
"Colin McCabe <colin@cozybit.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:libertas_spi");
|
||||
|
@ -731,3 +731,4 @@ module_exit(p54spi_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>");
|
||||
MODULE_ALIAS("spi:cx3110x");
|
||||
|
@ -1426,3 +1426,4 @@ EXPORT_SYMBOL_GPL(wl1251_free_hw);
|
||||
MODULE_DESCRIPTION("TI wl1251 Wireles LAN Driver Core");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>");
|
||||
MODULE_ALIAS("spi:wl12xx");
|
||||
|
@ -841,3 +841,4 @@ module_exit(ds1305_exit);
|
||||
|
||||
MODULE_DESCRIPTION("RTC driver for DS1305 and DS1306 chips");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:rtc-ds1305");
|
||||
|
@ -189,3 +189,4 @@ module_exit(ds1390_exit);
|
||||
MODULE_DESCRIPTION("Dallas/Maxim DS1390/93/94 SPI RTC driver");
|
||||
MODULE_AUTHOR("Mark Jackson <mpfj@mimc.co.uk>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:rtc-ds1390");
|
||||
|
@ -188,3 +188,4 @@ module_exit(ds3234_exit);
|
||||
MODULE_DESCRIPTION("DS3234 SPI RTC driver");
|
||||
MODULE_AUTHOR("Dennis Aberilla <denzzzhome@yahoo.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:ds3234");
|
||||
|
@ -171,3 +171,4 @@ module_exit(m41t94_exit);
|
||||
MODULE_AUTHOR("Kim B. Heino <Kim.Heino@bluegiga.com>");
|
||||
MODULE_DESCRIPTION("Driver for ST M41T94 SPI RTC");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:rtc-m41t94");
|
||||
|
@ -175,3 +175,4 @@ module_exit(max6902_exit);
|
||||
MODULE_DESCRIPTION ("max6902 spi RTC driver");
|
||||
MODULE_AUTHOR ("Raphael Assenat");
|
||||
MODULE_LICENSE ("GPL");
|
||||
MODULE_ALIAS("spi:rtc-max6902");
|
||||
|
@ -174,3 +174,4 @@ module_exit(r9701_exit);
|
||||
MODULE_DESCRIPTION("r9701 spi RTC driver");
|
||||
MODULE_AUTHOR("Magnus Damm <damm@opensource.se>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:rtc-r9701");
|
||||
|
@ -251,3 +251,4 @@ MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>");
|
||||
MODULE_DESCRIPTION("Ricoh RS5C348 RTC driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_ALIAS("spi:rtc-rs5c348");
|
||||
|
@ -925,3 +925,4 @@ module_exit(max3100_exit);
|
||||
MODULE_DESCRIPTION("MAX3100 driver");
|
||||
MODULE_AUTHOR("Christian Pellegrin <chripell@evolware.org>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:max3100");
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/cache.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include <linux/spi/spi.h>
|
||||
|
||||
|
||||
@ -93,7 +94,7 @@ static int spi_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
{
|
||||
const struct spi_device *spi = to_spi_device(dev);
|
||||
|
||||
add_uevent_var(env, "MODALIAS=%s", spi->modalias);
|
||||
add_uevent_var(env, "MODALIAS=%s%s", SPI_MODULE_PREFIX, spi->modalias);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -688,3 +688,4 @@ module_exit(spidev_exit);
|
||||
MODULE_AUTHOR("Andrea Paterniani, <a.paterniani@swapp-eng.it>");
|
||||
MODULE_DESCRIPTION("User mode SPI device interface");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:spidev");
|
||||
|
@ -329,3 +329,4 @@ module_exit(tle62x0_exit);
|
||||
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
||||
MODULE_DESCRIPTION("TLE62x0 SPI driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("spi:tle62x0");
|
||||
|
@ -2591,3 +2591,4 @@ module_exit(stlc45xx_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Kalle Valo <kalle.valo@nokia.com>");
|
||||
MODULE_ALIAS("spi:cx3110x");
|
||||
|
@ -639,3 +639,4 @@ module_exit(corgi_lcd_exit);
|
||||
MODULE_DESCRIPTION("LCD and backlight driver for SHARP C7x0/Cxx00");
|
||||
MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:corgi-lcd");
|
||||
|
@ -328,3 +328,4 @@ module_exit(ltv350qv_exit);
|
||||
MODULE_AUTHOR("Haavard Skinnemoen <hskinnemoen@atmel.com>");
|
||||
MODULE_DESCRIPTION("Samsung LTV350QV LCD Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:ltv350qv");
|
||||
|
@ -472,3 +472,4 @@ module_exit(tdo24m_exit);
|
||||
MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>");
|
||||
MODULE_DESCRIPTION("Driver for Toppoly TDO24M LCD Panel");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("spi:tdo24m");
|
||||
|
@ -300,4 +300,4 @@ module_exit(tosa_lcd_exit);
|
||||
MODULE_AUTHOR("Dmitry Baryshkov");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("LCD/Backlight control for Sharp SL-6000 PDA");
|
||||
|
||||
MODULE_ALIAS("spi:tosa-lcd");
|
||||
|
@ -280,5 +280,4 @@ module_exit(vgg2432a4_exit);
|
||||
MODULE_AUTHOR("Ben Dooks <ben-linux@fluff.org>");
|
||||
MODULE_DESCRIPTION("VGG2432A4 LCD Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
|
||||
MODULE_ALIAS("spi:VGG2432A4");
|
||||
|
@ -402,6 +402,7 @@ struct i2c_device_id {
|
||||
/* spi */
|
||||
|
||||
#define SPI_NAME_SIZE 32
|
||||
#define SPI_MODULE_PREFIX "spi:"
|
||||
|
||||
struct spi_device_id {
|
||||
char name[SPI_NAME_SIZE];
|
||||
|
@ -657,11 +657,11 @@ static int do_i2c_entry(const char *filename, struct i2c_device_id *id,
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Looks like: S */
|
||||
/* Looks like: spi:S */
|
||||
static int do_spi_entry(const char *filename, struct spi_device_id *id,
|
||||
char *alias)
|
||||
{
|
||||
sprintf(alias, "%s", id->name);
|
||||
sprintf(alias, SPI_MODULE_PREFIX "%s", id->name);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user