rtc: ds1305: use to_spi_device and kobj_to_dev
For better readability, use to_spi_device() and kobj_to_dev() instead of container_of(). Signed-off-by: NGeliang Tang <geliangtang@163.com> Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Showing
想要评论请 注册 或 登录