iio: dac: ad5758: declare missing of table
authorDaniel Gomez <dagmcr@gmail.com>
Tue, 23 Apr 2019 21:41:58 +0000 (23:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Apr 2019 12:58:40 +0000 (13:58 +0100)
commited61b30858141b6462f2a96c73c267845a478c0c
tree7a4fcc71bda90c61618d88f39f3a700b16252ad9
parent311def4cd2c6e8bbb4777919a3a5cf71592221db
iio: dac: ad5758: declare missing of table

Add missing <of_device_id> table for SPI driver relying on SPI
device match since compatible is in a DT binding or in a DTS.

Before this patch:
modinfo drivers/iio/dac/ad5758.ko | grep alias
alias:          spi:ad5758

After this patch:
modinfo drivers/iio/dac/ad5758.ko | grep alias
alias:          spi:ad5758
alias:          of:N*T*Cadi,ad5758C*
alias:          of:N*T*Cadi,ad5758

Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5758.c