Re: [PATCH v2 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-08-21 Thread Jonathan Cameron
On 25/07/16 11:57, Pratik Prajapati wrote: > Signed-off-by: Pratik Prajapati Why? I.e. Why replace it with regmap. I kind of assumed this was to add spi support on a dual bus chip, but it doesn't look like vcnl4000 has an spi version... I wouldn't have minded if the driver had originally been wr

[PATCH v2 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-25 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- Changes v1 -> v2 - added error msgs for led current's read and write functions drivers/iio/light/vcnl4000.c | 99 ++-- 1 file changed, 86 insertions(+), 13 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/driv