i2c: fsl-lpi2c: read lpi2c fifo size in probe()
authorGao Pan <pandy.gao@nxp.com>
Fri, 2 Dec 2016 03:38:16 +0000 (11:38 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 11 Dec 2016 22:06:39 +0000 (23:06 +0100)
commit6eb89ef029fe22aee518a9dc75b9ee5d6ef9b3fe
tree2498367c8fe0a7f881c30b367ab7503d28a6a440
parent38190dfb7056678e388f85cb9c79f8e479a4b263
i2c: fsl-lpi2c: read lpi2c fifo size in probe()

The lpi2c fifo size is a read only parameter resides Parameter
Register. It's better to read lpi2c tx/rx fifo size in probe()
other than just define a macro for it.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx-lpi2c.c