summaryrefslogtreecommitdiffstats
path: root/MAKEALL
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-01-25 21:59:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-28 10:01:36 +0100
commitd4c88b90c558d595bec49de933052ad855da5c69 (patch)
tree8595bc69a5a08ea84a14625ed488600b52f90c6a /MAKEALL
parent5d966f708a72bd81863dbe9b182929d88f7614fc (diff)
downloadbarebox-d4c88b90c558d595bec49de933052ad855da5c69.tar.gz
barebox-d4c88b90c558d595bec49de933052ad855da5c69.tar.xz
i2c_probe: limit slave addresses to [0x04, 0x77]
Adresses below 0x04 and above 0x77 are reserved in the i2c bus specification, so don't probe these addresses unless requested explicitly. Also do more strict boundary checking: - ensure start address is greater or equal to zero; - don't decrease stopaddr after checking it being greater or equal to startaddr. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions