We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45c1e8 commit 1d5ccabCopy full SHA for 1d5ccab
drivers/spi/spi-mux.c
@@ -167,17 +167,25 @@ static int spi_mux_probe(struct spi_device *spi)
167
return ret;
168
}
169
170
+static const struct spi_device_id spi_mux_id[] = {
171
+ { "spi-mux" },
172
+ { }
173
+};
174
+MODULE_DEVICE_TABLE(spi, spi_mux_id);
175
+
176
static const struct of_device_id spi_mux_of_match[] = {
177
{ .compatible = "spi-mux" },
178
{ }
179
};
180
+MODULE_DEVICE_TABLE(of, spi_mux_of_match);
181
182
static struct spi_driver spi_mux_driver = {
183
.probe = spi_mux_probe,
184
.driver = {
185
.name = "spi-mux",
186
.of_match_table = spi_mux_of_match,
187
},
188
+ .id_table = spi_mux_id,
189
190
191
module_spi_driver(spi_mux_driver);
0 commit comments