iio: light: gp2ap020a00f: Swap of.h for mod_devicetable.h + drop of_match_ptr
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:02:03 +0000 (16:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 14:42:22 +0000 (15:42 +0100)
commitde1cbfe1174fe015c2df7fead1f43ec6edc74fc1
tree9e05cfebaa23ccd598637d945a0927764567650f
parent1de94b5945f2a3b1be29a235edf22af6d5b2f140
iio: light: gp2ap020a00f: Swap of.h for mod_devicetable.h + drop of_match_ptr

Also drops ifdef protections for CONFIG_OF.

Enables probing via ACPI PRP0001 and removes an example that might be
cut and paste into new drivers.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
drivers/iio/light/gp2ap020a00f.c