mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-17 02:17:43 +07:00
mfd: cros_ec: spi: Add OF match table
The Documentation/devicetree/bindings/mfd/cros-ec.txt DT binding doc lists "google,cros-ec-spi" as a compatible string but the corresponding driver does not have an OF match table. Add the table to the driver so the SPI core can do an OF style match. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
1e955bece2
commit
a78ea195f7
@ -701,6 +701,12 @@ static int cros_ec_spi_resume(struct device *dev)
|
|||||||
static SIMPLE_DEV_PM_OPS(cros_ec_spi_pm_ops, cros_ec_spi_suspend,
|
static SIMPLE_DEV_PM_OPS(cros_ec_spi_pm_ops, cros_ec_spi_suspend,
|
||||||
cros_ec_spi_resume);
|
cros_ec_spi_resume);
|
||||||
|
|
||||||
|
static const struct of_device_id cros_ec_spi_of_match[] = {
|
||||||
|
{ .compatible = "google,cros-ec-spi", },
|
||||||
|
{ /* sentinel */ },
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, cros_ec_spi_of_match);
|
||||||
|
|
||||||
static const struct spi_device_id cros_ec_spi_id[] = {
|
static const struct spi_device_id cros_ec_spi_id[] = {
|
||||||
{ "cros-ec-spi", 0 },
|
{ "cros-ec-spi", 0 },
|
||||||
{ }
|
{ }
|
||||||
@ -710,6 +716,7 @@ MODULE_DEVICE_TABLE(spi, cros_ec_spi_id);
|
|||||||
static struct spi_driver cros_ec_driver_spi = {
|
static struct spi_driver cros_ec_driver_spi = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "cros-ec-spi",
|
.name = "cros-ec-spi",
|
||||||
|
.of_match_table = of_match_ptr(cros_ec_spi_of_match),
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.pm = &cros_ec_spi_pm_ops,
|
.pm = &cros_ec_spi_pm_ops,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user