i2c_probe command: Use kstrtoint
Use kstrtoint rather than simple_strtoul to catch erroneous input like "i2c1" which previously was silently interpreted as "0". Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
commands/i2c.c |
---|