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>
1 parent e43eed6 commit f246b4079c746f80e29b07252c546d37a359105f
@Sascha Hauer Sascha Hauer authored on 14 Feb 2020
Showing 1 changed file
View
commands/i2c.c