]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4756be9baa2183c1ea1414aba5e222a62184471
treee1d50915d6eb4ba2ac0d546ab1a83889c7b612f4
parent2f8cfe3abfc57a279c0d5773ca494bdd85b4e837
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