i2c: meson: don't create separate token chain just for the stop command
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 25 Mar 2017 13:11:08 +0000 (14:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 30 Mar 2017 15:31:15 +0000 (17:31 +0200)
commit3f205d7b47611f82316776c9ef7317525242307b
treeec669eadd1cfb897e06dde1d2fd713aa8aefe590
parent38ed55ca9ec2808ed7ee5183bec1f4e7187d3ea2
i2c: meson: don't create separate token chain just for the stop command

We can directly add the stop token to the token chain including the
last transfer chunk. This is more efficient than creating a separate
token chain just for the stop command.
And it allows us to get rid of state STATE_STOP completely.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-meson.c