]> git.baikalelectronics.ru Git - kernel.git/commit
spi: add of_device_uevent_modalias support
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 25 May 2021 09:10:03 +0000 (11:10 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jun 2021 10:43:16 +0000 (11:43 +0100)
commit217c2933bc6dd0e2a47c91c179cb2cb33e0f984d
treefc5c8fe21a83841cdb3239d15775394a03dd75f5
parent268aee8632d4cf11f9bc2e2c2f60820392b3ce11
spi: add of_device_uevent_modalias support

Add OF support as already done for ACPI to take driver
MODULE_DEVICE_TABLE(of, ..) into account.

For example with this change a spi nor device MODALIAS changes from:

MODALIAS=spi:spi-nor

to

MODALIAS=of:Nspi-flashT(null)Cjedec,spi-nor

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20210525091003.18228-1-m.felsch@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c