tegra: i2c: Change driver to use helper function
authorSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 16:54:52 +0000 (09:54 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 7 Feb 2020 14:41:24 +0000 (22:41 +0800)
commitfdec36f248c0508ab5d001ad65c38f413638b4a2
treebcae159e88ac7faafba16bb886de3d72e5d321e7
parentae44cafcb3f1287f618693bab865fcdbe4abb90f
tegra: i2c: Change driver to use helper function

Now that we have uclass_first_device_drvdata(), use it from the I2C driver
to reduce code duplication.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/i2c/tegra_i2c.c