]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: sd2405al: drop needless struct sd2405al::rtc member
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 4 Mar 2025 17:05:41 +0000 (17:05 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 5 Mar 2025 22:08:01 +0000 (23:08 +0100)
commitd94bc2bbf8d9c1319c64467cc5bf94ecb5388cfa
tree3262102904d4a7ddaf33a387cce1dc046f984d72
parentcd2a7052482e8a34348e30e6a6525ecb23f0d383
rtc: sd2405al: drop needless struct sd2405al::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.

Tested-by: Tóth János <gomba007@gmail.com>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250304-rtc-cleanups-v2-13-d4689a71668c@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sd2405al.c