Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory: ti-aemif: Remove unnecessary local variables

CS timings are copied to local variables that are then used as is,
without any modifications.

Remove these unneeded local variables and deal directly with the timings
stored in the struct aemif_cs_data.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20241204094319.1050826-3-bastien.curutchet@bootlin.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Bastien Curutchet and committed by
Krzysztof Kozlowski
b3d57e17 1ec0fa90

+3 -11
+3 -11
drivers/memory/ti-aemif.c
··· 174 174 { 175 175 struct aemif_device *aemif = platform_get_drvdata(pdev); 176 176 struct aemif_cs_data *data = &aemif->cs_data[csnum]; 177 - int ta, rhold, rstrobe, rsetup, whold, wstrobe, wsetup; 178 177 unsigned offset; 179 178 u32 set, val; 180 179 181 180 offset = A1CR_OFFSET + (data->cs - aemif->cs_offset) * 4; 182 181 183 - ta = data->ta; 184 - rhold = data->rhold; 185 - rstrobe = data->rstrobe; 186 - rsetup = data->rsetup; 187 - whold = data->whold; 188 - wstrobe = data->wstrobe; 189 - wsetup = data->wsetup; 190 - 191 - set = TA(ta) | RHOLD(rhold) | RSTROBE(rstrobe) | RSETUP(rsetup) | 192 - WHOLD(whold) | WSTROBE(wstrobe) | WSETUP(wsetup); 182 + set = TA(data->ta) | 183 + RHOLD(data->rhold) | RSTROBE(data->rstrobe) | RSETUP(data->rsetup) | 184 + WHOLD(data->whold) | WSTROBE(data->wstrobe) | WSETUP(data->wsetup); 193 185 194 186 set |= (data->asize & ACR_ASIZE_MASK); 195 187 if (data->enable_ew)