Commit 3d5ead23 authored by Marek Vasut's avatar Marek Vasut Committed by Jonathan Cameron

iio: mlx90614: Factor our register IO and constants into model specific descriptor

Factor out all the differences between MLX90614 and other similar chips
into a structure which describes the chip and allows abstracting out the
differences from the driver code. No functional change.

This patch moves all the RAM and EEPROM IO opcodes into the descriptor
structure and combines them, instead of combining the opcode and offset
in macros.
Acked-by: default avatarCrt Mori <cmo@melexis.com>
Tested-by: default avatarCrt Mori <cmo@melexis.com>
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20230510102251.10118-5-marex@denx.deSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 8a0377bf
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment