2022-03-11 09:58:58

by Jarkko Nikula

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

On 3/11/22 00:09, Jan Dabros wrote:
> Simplify code by moving common part to one function.
>
> Signed-off-by: Jan Dabros <[email protected]>
> Suggested-by: Andy Shevchenko <[email protected]>
> ---
> 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 <[email protected]>