i2c: rcar: sanity check for minimal DMA length
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 5 Mar 2019 17:54:32 +0000 (18:54 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 20 Mar 2019 17:18:54 +0000 (18:18 +0100)
commited5a81046bf7a1b665eb5bf178c4139503f4637e
treecb76317b5676c2fa504d755193ac8783a12364cf
parent0d7350316a2a773254cd261daa8d3f2c4dd38610
i2c: rcar: sanity check for minimal DMA length

Use a macro for the hardcoded value and apply a build check. If it is
not met, the driver logic will not work anymore.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c