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

mtd: cfi_cmdset_0002: Rename chip_ready variables

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220323170458.5608-5-ikegami.t@gmail.com

authored by

Tokunori Ikegami and committed by
Miquel Raynal
43823c5c cccea941

+7 -7
+7 -7
drivers/mtd/chips/cfi_cmdset_0002.c
··· 834 834 unsigned long addr, map_word *expected) 835 835 { 836 836 struct cfi_private *cfi = map->fldrv_priv; 837 - map_word d, t; 837 + map_word oldd, curd; 838 838 int ret; 839 839 840 840 if (cfi_use_status_reg(cfi)) { ··· 845 845 */ 846 846 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, 847 847 cfi->device_type, NULL); 848 - t = map_read(map, addr); 848 + curd = map_read(map, addr); 849 849 850 - return map_word_andequal(map, t, ready, ready); 850 + return map_word_andequal(map, curd, ready, ready); 851 851 } 852 852 853 - d = map_read(map, addr); 854 - t = map_read(map, addr); 853 + oldd = map_read(map, addr); 854 + curd = map_read(map, addr); 855 855 856 - ret = map_word_equal(map, d, t); 856 + ret = map_word_equal(map, oldd, curd); 857 857 858 858 if (!ret || !expected) 859 859 return ret; 860 860 861 - return map_word_equal(map, t, *expected); 861 + return map_word_equal(map, curd, *expected); 862 862 } 863 863 864 864 static int __xipram chip_good(struct map_info *map, struct flchip *chip,