Re: [PATCH v2 -next] i2c: designware: Remove code duplication

From: Jarkko Nikula
Date: Fri Mar 11 2022 - 03:24:09 EST


On 3/11/22 00:09, Jan Dabros wrote:
Simplify code by moving common part to one function.

Signed-off-by: Jan Dabros <jsd@xxxxxxxxxxxx>
Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
v1->v2:
* Add kudos for Andy who suggested this change
* Get rid of extra function and move common code to psp_send_i2c_req
* Update commit message and commit title
(was "i2c:designware: Add helper to remove redundancy")
drivers/i2c/busses/i2c-designware-amdpsp.c | 35 ++++++++++------------
1 file changed, 15 insertions(+), 20 deletions(-)

Acked-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>