iio: humidity: hdc3020: switch to 16bit register defines
authorDimitri Fedrau <dima.fedrau@gmail.com>
Wed, 14 Feb 2024 08:53:43 +0000 (09:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Feb 2024 16:16:12 +0000 (16:16 +0000)
commit52882c6fb16ff406b7f5330958523328ce40f248
tree88e49decf5aa51c4e15b8ee97f1b77cc53c28bc8
parentf1f99fcbf997b50a32844c31523ed41da0428f08
iio: humidity: hdc3020: switch to 16bit register defines

Switch to 16bit register defines and drop the const u8 register pairs.
By doing so we change the parameter of functions for reading and writing
to the device. Additionally create helper functions that are aware of the
new register format and apply them wherever possible.

Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com>
Link: https://lore.kernel.org/r/20240214085350.19382-2-dima.fedrau@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/humidity/hdc3020.c