iio: adxl372: declare missing of table
authorDaniel Gomez <dagmcr@gmail.com>
Tue, 23 Apr 2019 21:41:37 +0000 (23:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Apr 2019 12:57:36 +0000 (13:57 +0100)
commit311def4cd2c6e8bbb4777919a3a5cf71592221db
tree37c5426912b089f5274ed7c5aed3fe2851ff4dcd
parent17b16c3cbe92dee378004699e12aa6aa3df389e7
iio: adxl372: 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/accel/adxl372_spi.ko | grep alias

After this patch:
modinfo drivers/iio/accel/adxl372_spi.ko | grep alias
alias:          spi:adxl372
alias:          of:N*T*Cadi,adxl372C*
alias:          of:N*T*Cadi,adxl372

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/accel/adxl372_spi.c