commands: i2c_write: enable reg == 0 too
This commit fixes the mistake introduced in the commit 34fadb685905
('commands: i2c_write: enable raw write to address').
The intended behaviour for i2c_write command is
"use raw i2c write only if reg address is not defined".
Before the commit 34fadb685905 reg address == 0
was acceptable. After the commit 34fadb685905 reg address == 0
became unacceptable ("undefined") and will lead to raw i2c write.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6377d27 commit aea31bf35f569aca4ec2091d7050488c0182926a
@Antony Pavlov Antony Pavlov authored on 16 Apr 2018
Sascha Hauer committed on 17 Apr 2018
Showing 1 changed file
View
commands/i2c.c