iio: light: cm32181: Change reg_init to use a bitmap of which registers to init
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 17:29:19 +0000 (19:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 May 2020 09:44:01 +0000 (10:44 +0100)
commit7574cb1df43c6219f0088d028906f4e15fee702f
tree59683b1aafb3e5aff09c9ee0b4e64550b83ca2e0
parentc1e62062ff5477f3cd40e956fb1c18808cc894a4
iio: light: cm32181: Change reg_init to use a bitmap of which registers to init

This is a preparation patch for reading some ACPI tables which give
init values for multiple registers.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/cm32181.c