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

Jarkko Nikula
2022-03-11T08:24:07Z

On 3/11/22 00:09, Jan Dabros wrote:
> Simplify code by moving common part to one function.
>
> Signed-off-by: Jan Dabros <jsd@semihalf.com>
> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> 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@linux.intel.com>