]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: meson: remove meson_i2c_write_tokens
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 25 Mar 2017 13:12:04 +0000 (14:12 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 30 Mar 2017 15:31:22 +0000 (17:31 +0200)
commit336ab074e50f0d31e0bbc6ce72c30d6cd8e3493e
tree045434604ea6eacf454facd2514951a6afd10457
parent28422defc38ce833081c1a5c98fdab7881ac1aa0
i2c: meson: remove meson_i2c_write_tokens

meson_i2c_write_tokens is always called directly after
meson_i2c_prepare_xfer (and only then). So we can simplify the code by
removing meson_i2c_write_tokens and moving the two statements of
meson_i2c_write_tokens to the end of meson_i2c_prepare_xfer.

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