Skip to content

Commit bdc0eeb

Browse files
author
Joel Slebodnick
committed
mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name
JIRA: https://issues.redhat.com/browse/RHEL-40636 commit b1145d6 Author: Tudor Ambarus <tudor.ambarus@microchip.com> Date: Wed Apr 20 13:34:17 2022 +0300 mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name The method is matching a flash_info entry by searching by name. Rename the method for better clarity. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20220420103427.47867-2-tudor.ambarus@microchip.com Signed-off-by: Joel Slebodnick <jslebodn@redhat.com>
1 parent 64f189a commit bdc0eeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/spi-nor/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,8 +2961,8 @@ void spi_nor_restore(struct spi_nor *nor)
29612961
}
29622962
EXPORT_SYMBOL_GPL(spi_nor_restore);
29632963

2964-
static const struct flash_info *spi_nor_match_id(struct spi_nor *nor,
2965-
const char *name)
2964+
static const struct flash_info *spi_nor_match_name(struct spi_nor *nor,
2965+
const char *name)
29662966
{
29672967
unsigned int i, j;
29682968

@@ -3037,7 +3037,7 @@ static const struct flash_info *spi_nor_get_flash_info(struct spi_nor *nor,
30373037
const struct flash_info *info = NULL;
30383038

30393039
if (name)
3040-
info = spi_nor_match_id(nor, name);
3040+
info = spi_nor_match_name(nor, name);
30413041
/* Try to auto-detect if chip name wasn't specified or not found */
30423042
if (!info)
30433043
info = spi_nor_read_id(nor);

0 commit comments

Comments
 (0)