]> 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)
commitdd9096821663e01b54d22ab857514f1aa970c376
treee1d50915d6eb4ba2ac0d546ab1a83889c7b612f4
parent49586be8d5c9dbdadef4cbfa5510c86753f7dc8b
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