rtc: ds1347: simplify getting .driver_data
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:47:18 +0000 (15:47 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:49:28 +0000 (15:49 +0200)
commitff7f9e0533ffb47a18090b8cfd6fe69ef757d7e7
treee1d50915d6eb4ba2ac0d546ab1a83889c7b612f4
parent1d84eca6d5b320b9c0a2f7c107aac40bb8989785
rtc: ds1347: simplify getting .driver_data

Get 'driver_data' from 'struct device' directly. Going via spi_device is an
unnecessary step.

Link: https://lore.kernel.org/r/20191007134724.15505-4-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1347.c