]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: s35390a: drop needless struct s35390a::rtc member
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 4 Mar 2025 17:05:40 +0000 (17:05 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Mar 2025 22:08:01 +0000 (23:08 +0100)
commitcd2a7052482e8a34348e30e6a6525ecb23f0d383
tree8f8f17e09d305c8024aa2a434662b20667282a75
parent3b87c6872aed6a7f4112ed6f6078e43035ce0026
rtc: s35390a: drop needless struct s35390a::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-12-d4689a71668c@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s35390a.c