i2c_probe: fix wrong start and stop addresses
This patch fixes the wrong range of i2c addresses used by the i2c_probe
command when a stop address is provided. In this case the start address
(startaddr) was taking the value of the stop address and the stop address
(stopaddr) was always set to its default value.

Signed-off-by: Miquel Raynal <raynal.miquel@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1bef2e8 commit 24a6b3f8eabf08b589a2860aee9b670fa88cd085
@Miquel Raynal Miquel Raynal authored on 13 Apr 2016
Sascha Hauer committed on 15 Apr 2016
Showing 1 changed file
View
commands/i2c.c