Skip to content

Commit d60f7ca

Browse files
hsdenxbroonie
authored andcommitted
spi: spidev: Add an entry for the ABB spi sensors
This sensors are currently controlled from userspace, ideally we will add full drivers in the future. Signed-off-by: Heiko Schocher <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent aad2f87 commit d60f7ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spidev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ static const struct class spidev_class = {
703703
* spidev_dt_ids array below. Both arrays are kept in the same ordering.
704704
*/
705705
static const struct spi_device_id spidev_spi_ids[] = {
706+
{ .name = /* abb */ "spi-sensor" },
706707
{ .name = /* cisco */ "spi-petra" },
707708
{ .name = /* dh */ "dhcom-board" },
708709
{ .name = /* elgin */ "jg10309-01" },
@@ -735,6 +736,7 @@ static int spidev_of_check(struct device *dev)
735736
}
736737

737738
static const struct of_device_id spidev_dt_ids[] = {
739+
{ .compatible = "abb,spi-sensor", .data = &spidev_of_check },
738740
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
739741
{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
740742
{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },

0 commit comments

Comments
 (0)