rtc: rv3028: make rv3028 probeable from userspace
authorJohannes Kirchmair <johannes.kirchmair@sigmatek.at>
Mon, 27 Mar 2023 08:55:50 +0000 (10:55 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 25 Jun 2023 23:05:13 +0000 (01:05 +0200)
commit7e2a60efab8ad901c4743137857c1c5e18e27ed8
treebaa7c52d938fe2a0a9f4f11a78ec745d303551d9
parentfdd63f65ac25d0851dade4c7ba94a7a882b8d9c2
rtc: rv3028: make rv3028 probeable from userspace

With this commit, it will be possible to bind a rv3028 device from
userspace

This is done by:
echo rtc-rv3028 0x52 > /sys/bus/i2c/devices/i2c-XX/new_device

Signed-off-by: Johannes Kirchmair <johannes.kirchmair@sigmatek.at>
Link: https://lore.kernel.org/r/20230327085550.1721861-1-johannes.kirchmair@sigmatek.at
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv3028.c