i2c: Set default I2C bus number
authorLukasz Majewski <lukma@denx.de>
Tue, 21 Mar 2017 11:08:25 +0000 (12:08 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 28 Mar 2017 04:27:54 +0000 (06:27 +0200)
commite46f8a3309fb2628940d3e2806c954d84f910165
treefef8b56725a7613dd59bfd5f41891461cd955b48
parentb52a3fa08b830006c1872517bdafe41160d9223d
i2c: Set default I2C bus number

This patch allows using i2c commands (e.g. "i2c probe", "i2c md", etc)
without the need to first select the bus number with e.g. "i2c dev 0".

This is the "i2c" command behavior similar to the one from pre DM, where
by default bus 0 was immediately accessible.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
cmd/i2c.c
drivers/i2c/Kconfig