OSDN Git Service

pxa2xx: Auto-assign name for i2c bus in i2c_init_bus.
authorVijay Kumar B <vijaykumar@zilogic.com>
Mon, 17 Oct 2016 18:22:18 +0000 (19:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Oct 2016 18:22:18 +0000 (19:22 +0100)
commit08426da7dd0a63835dcf3003e9a022c0d5678be7
treec6492ce66ce3505652ac890900d26fe647768589
parent24b9462544eeb64e1f10feb460b0c704e972ad4e
pxa2xx: Auto-assign name for i2c bus in i2c_init_bus.

If a name is provided, the same name is assigned to both the I2C
controllers. Leaving it NULL, causes names to be automatically
assigned with an ID suffix, giving unique names to each
controller. This helps us to uniquely identify each controller in the
device tree, for example when adding an I2C device.

Signed-off-by: Vijay Kumar B. <vijaykumar@zilogic.com>
Reviewed-by: Deepak S. <deepak@zilogic.com>
Message-id: 1476351885-8905-1-git-send-email-vijaykumar@zilogic.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/pxa2xx.c