]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: m48t86: drop needless struct m48t86_rtc_info::rtc member
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 4 Mar 2025 17:05:35 +0000 (17:05 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Mar 2025 22:08:00 +0000 (23:08 +0100)
commit013df5bdf8b469e8eb15f0a26743864a33217639
tree8cd1690247f7a7c956411667d2bb18235f17e96b
parenta55d44807b63f171f8079d770c9d82fa87046cdd
rtc: m48t86: drop needless struct m48t86_rtc_info::rtc member

The memory pointed to by the ::rtc member is managed via devres, and
no code in this driver uses it past _probe().

We can drop it from the structure and just use a local temporary
variable, reducing runtime memory consumption by a few bytes.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250304-rtc-cleanups-v2-7-d4689a71668c@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-m48t86.c