From 76a2a0073222e3c131294f059543306067ad6ecb Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Fri, 10 Dec 2021 16:54:41 +0100 Subject: [PATCH] si4700: optimize RDS cache update a little use si4700_read() instead of si4700_read_reg() to make it clear we are not interested in the register itself but in the cache update. Also, a tiny bit more efficient as we save a function call and don't request a return value we don't use anyhow. Change-Id: Ibbb66fd9e5ea748ba11ac3c2a0570f5219b72637 --- firmware/drivers/tuner/si4700.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/drivers/tuner/si4700.c b/firmware/drivers/tuner/si4700.c index 57006b4e3c..cce203fde9 100644 --- a/firmware/drivers/tuner/si4700.c +++ b/firmware/drivers/tuner/si4700.c @@ -586,7 +586,7 @@ void si4700_rds_process(void) if (tuner_powered()) { - si4700_read_reg(RDSD); + si4700_read(6); #if (CONFIG_RDS & RDS_CFG_POLL) /* we need to keep track of the ready bit because it stays set for 80ms * and we must avoid processing it twice */