Skip to content

Commit 43823c5

Browse files
ikegami-tmiquelraynal
authored andcommitted
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
1 parent cccea94 commit 43823c5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ static int __xipram chip_ready(struct map_info *map, struct flchip *chip,
834834
unsigned long addr, map_word *expected)
835835
{
836836
struct cfi_private *cfi = map->fldrv_priv;
837-
map_word d, t;
837+
map_word oldd, curd;
838838
int ret;
839839

840840
if (cfi_use_status_reg(cfi)) {
@@ -845,20 +845,20 @@ static int __xipram chip_ready(struct map_info *map, struct flchip *chip,
845845
*/
846846
cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi,
847847
cfi->device_type, NULL);
848-
t = map_read(map, addr);
848+
curd = map_read(map, addr);
849849

850-
return map_word_andequal(map, t, ready, ready);
850+
return map_word_andequal(map, curd, ready, ready);
851851
}
852852

853-
d = map_read(map, addr);
854-
t = map_read(map, addr);
853+
oldd = map_read(map, addr);
854+
curd = map_read(map, addr);
855855

856-
ret = map_word_equal(map, d, t);
856+
ret = map_word_equal(map, oldd, curd);
857857

858858
if (!ret || !expected)
859859
return ret;
860860

861-
return map_word_equal(map, t, *expected);
861+
return map_word_equal(map, curd, *expected);
862862
}
863863

864864
static int __xipram chip_good(struct map_info *map, struct flchip *chip,

0 commit comments

Comments
 (0)