diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2018-04-17 06:58:29 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-17 09:25:09 +0200 |
commit | aea31bf35f569aca4ec2091d7050488c0182926a (patch) | |
tree | c7196aeffa5bbbf7a535858f275d64ddcc7faec7 /drivers | |
parent | 6377d27b951bfddc67bba16e83f79ae1d9fa8eb9 (diff) | |
download | barebox-aea31bf35f569aca4ec2091d7050488c0182926a.tar.gz barebox-aea31bf35f569aca4ec2091d7050488c0182926a.tar.xz |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions