rtc: max77686: convert to devm_i2c_new_dummy_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 30 Aug 2019 13:31:23 +0000 (15:31 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 1 Sep 2019 07:18:35 +0000 (09:18 +0200)
commit59a7f24fceb3aef6bd16f5aeb852c823dddab04d
treeac029c2b756095596a2af4b721ba7609757a04a1
parent7ef66122bdb3b839e9f51b76d7e600b6e21ef648
rtc: max77686: convert to devm_i2c_new_dummy_device()

I was about to simplify the call to i2c_unregister_device() when I
realized that converting to devm_i2c_new_dummy_device() will simplify
the driver a lot. So I took this approach.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20190830133124.21633-2-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-max77686.c