Re: [PATCH v4 3/3] rtc: s5m: use devm_i2c_new_dummy_device()

From: Krzysztof Kozlowski
Date: Mon Jan 11 2021 - 08:37:40 EST


On Mon, Jan 11, 2021 at 01:40:27PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
>
> Use the managed variant of i2c_new_dummy_device() to shrink code and
> remove the goto label. We can drop the remove callback now too.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> ---
> drivers/rtc/rtc-s5m.c | 31 +++++++------------------------
> 1 file changed, 7 insertions(+), 24 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>

Best regards,
Krzysztof