iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor

The VCNL4040 is almost identical to the VCNL4200 as far as register
layout goes but just need to check a different ID register location.

This does change the initialization sequence of the VCNL4200 to use word writes
instead of byte writes. The VCNL4200 says that word read and writes should be
used to access the registers but I don't have a 4200 to test with. The VCNL4040
doesn't initialize properly with the byte writes.
Signed-off-by: default avatarAngus Ainslie (Purism) <angus@akkea.ca>
parent 7c170260
This diff is collapsed.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment