]> www.infradead.org Git - users/hch/block.git/commitdiff
spi: spidev: add correct compatible for Rohm BH2228FV
authorConor Dooley <conor.dooley@microchip.com>
Wed, 17 Jul 2024 09:59:49 +0000 (10:59 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jul 2024 10:17:09 +0000 (11:17 +0100)
When Maxime originally added the BH2228FV to the spidev driver, he spelt
it incorrectly - the d should have been a b. Add the correctly spelt
compatible to the driver. Although the majority of users of this
compatible are abusers, there is at least one board that validly uses
the incorrect spelt compatible, so keep it in the driver to avoid
breaking the few real users it has.

Fixes: 8fad805bdc52 ("spi: spidev: Add Rohm DH2228FV DAC compatible string")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20240717-ventricle-strewn-a7678c509e85@spud
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c

index 95fb5f1c91c176099005f2dfdc7cdc3425be92a7..05e6d007f9a7f617c52c20fbc5f7dfa16d9838a4 100644 (file)
@@ -734,6 +734,7 @@ static const struct of_device_id spidev_dt_ids[] = {
        { .compatible = "lwn,bk4", .data = &spidev_of_check },
        { .compatible = "menlo,m53cpld", .data = &spidev_of_check },
        { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
+       { .compatible = "rohm,bh2228fv", .data = &spidev_of_check },
        { .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
        { .compatible = "semtech,sx1301", .data = &spidev_of_check },
        { .compatible = "silabs,em3581", .data = &spidev_of_check },