[PATCH 02/18] rtc: s5m: drop needless struct s5m_rtc_info::i2c member

Krzysztof Kozlowski krzk at kernel.org
Sat Mar 1 04:31:05 AEDT 2025


On 28/02/2025 15:07, André Draszik wrote:
> When this driver was converted to using the devres managed i2c device
> in commit 7db7ad0817fe ("rtc: s5m: use devm_i2c_new_dummy_device()"),
> struct s5m_rtc_info::i2c became essentially unused.
> 
> 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 at linaro.org>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

Best regards,
Krzysztof


More information about the Linux-aspeed mailing list