]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28422defc38ce833081c1a5c98fdab7881ac1aa0
treeec669eadd1cfb897e06dde1d2fd713aa8aefe590
parent8cb1fcf61acd1aff51901195879e6a4759520628
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