iio: accel: kxsd9-i2c: Use mod_devicetable.h and drop of_match_ptr macro
authorNishant Malpani <nish.malpani25@gmail.com>
Fri, 24 Apr 2020 22:44:38 +0000 (04:14 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 14:31:34 +0000 (15:31 +0100)
commit3699e268a773fd304f8e80b3f163a395919a64b7
treee0fbe69c324e0db55f74606d714f486f2f2830ed
parent6d6c5e56d7718cdb7903d8ad2a1048fbe92afba6
iio: accel: kxsd9-i2c: Use mod_devicetable.h and drop of_match_ptr macro

Enables ACPI DSDT to probe via PRP0001 and the compatible property. Also
removes the ifdef protections for CONFIG_OF.

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxsd9-i2c.c