Skip to contentSkip to conversation

spi: spidev: Allow matching DT compatible strings from ACPI

PATCH Superseded Mika Westerberg 2 participants 3 messages Jun 10, 2016 – Jun 22, 2016 2 messages not in the archive SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spidev: Allow matching DT compatible strings from ACPI

Allow the same devices to be used in ACPI based systems if they provide proper DT compatible string.

---
 drivers/spi/spidev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/spi/spidev.c +1 -3
index e3c19f30f591..86a4c28b9e58 100644
@@ -691,14 +691,12 @@ static const struct file_operations spidev_fops = {
 
 static struct class *spidev_class;
 
-#ifdef CONFIG_OF
 static const struct of_device_id spidev_dt_ids[] = {
 	{ .compatible = "rohm,dh2228fv" },
 	{ .compatible = "lineartechnology,ltc2488" },
 	{},
 };
 MODULE_DEVICE_TABLE(of, spidev_dt_ids);
-#endif
 
 /*-------------------------------------------------------------------------*/
 
@@ -788,7 +786,7 @@ static int spidev_remove(struct spi_device *spi)
 static struct spi_driver spidev_spi_driver = {
 	.driver = {
 		.name =		"spidev",
-		.of_match_table = of_match_ptr(spidev_dt_ids),
+		.of_match_table = spidev_dt_ids,
 	},
 	.probe =	spidev_probe,
 	.remove =	spidev_remove,
Signature · 6 lines
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1465556147-86198-1-git-send-email-mika.westerberg-VuQAYsv1563Yd54FQh9/[email protected]

A message that is not in the archive (sent off-list or not yet received): 20160620111358.GK1739-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org

#4 lore raw
Quoted 7 lines · Mika Westerberg
Quoted 4 lines · Mika Westerberg

Allow the same devices to be used in ACPI based systems if they provide proper DT compatible string.

Any comments Mark?

Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unless there is some reason for urgency (like critical bug fixes) please allow at least a couple of weeks for review. If there have been review comments then people may be waiting for those to be addressed. Sending content free pings just adds to the mail volume (if they are seen at all) and if something has gone wrong you'll have to resend the patches anyway.