On 1/16/23 18:32, Jonathan Cameron wrote:
On Sun, 15 Jan 2023 19:38:03 +0200
andriy.shechenko@xxxxxxxxxxxxx wrote:
Tue, Jan 10, 2023 at 02:43:23PM +0100, Mårten Lindahl kirjoitti:
Add support to configure proximity sensor interrupts and threshold
limits for vcnl4040. If an interrupt is detected an event will be
pushed to the event interface.
...
+ ret = i2c_smbus_read_word_data(data->client, VCNL4200_PS_CONF1);
+ if (ret < 0)
+ goto out;
+
+ val = (u16)ret;
Why do you need casting?
Looks like these need a little more time.
Dropped from my tree for now.
Jonathan
Hi Jonathan!
No problem. I'll send v4 shortly. Thanks!
Kind regards
Mårten