rtc: ds1305: use to_spi_device and kobj_to_dev
authorGeliang Tang <geliangtang@163.com>
Wed, 23 Dec 2015 12:54:33 +0000 (20:54 +0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 4 Feb 2016 22:44:16 +0000 (23:44 +0100)
commit54dd1c4c2979d1ad127d0e615fdd0f5016a5d713
treeaf47537f21df87157ca76ddd76b21dab96f832eb
parentbf035f42344a3e790c2d37ed3ee9005311f98075
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: Geliang Tang <geliangtang@163.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1305.c