Re: [PATCH] rtc: ds1305: use to_spi_device and kobj_to_dev

From: Alexandre Belloni
Date: Wed Jan 20 2016 - 18:20:10 EST


On 23/12/2015 at 20:54:33 +0800, Geliang Tang wrote :
> For better readability, use to_spi_device() and kobj_to_dev() instead
> of container_of().
>
> Signed-off-by: Geliang Tang <geliangtang@xxxxxxx>
> ---
> drivers/rtc/rtc-ds1305.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com