]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: ds2404: drop needless struct ds2404::rtc member
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 4 Mar 2025 17:05:32 +0000 (17:05 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Mar 2025 22:08:00 +0000 (23:08 +0100)
commit1b625aaf335ad2216b47b9b9d9416d66f0a54e8b
tree1a144da1ab3799f5ec03c819063ba777e06ca3f2
parentd19111dff9c2dd0fcafaaea634236ecd0ec29c6a
rtc: ds2404: drop needless struct ds2404::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-4-d4689a71668c@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds2404.c