Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f049fd90 authored by Chris Coffey's avatar Chris Coffey Committed by Greg Kroah-Hartman
Browse files

staging: goldfish: Use __func__ instead of function name



Replace hard-coded function names in strings with "%s", __func__
in the goldfish_nand.c file. Issue found by checkpatch.pl.

Signed-off-by: default avatarChris Coffey <cmc@babblebit.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 786d897c
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -157,8 +157,8 @@ static int goldfish_nand_read_oob(struct mtd_info *mtd, loff_t ofs,
	return 0;
	return 0;


invalid_arg:
invalid_arg:
	pr_err("goldfish_nand_read_oob: invalid read, start %llx, len %zx, ooblen %zx, dev_size %llx, write_size %x\n",
	pr_err("%s: invalid read, start %llx, len %zx, ooblen %zx, dev_size %llx, write_size %x\n",
	       ofs, ops->len, ops->ooblen, mtd->size, mtd->writesize);
	       __func__, ofs, ops->len, ops->ooblen, mtd->size, mtd->writesize);
	return -EINVAL;
	return -EINVAL;
}
}


@@ -189,8 +189,8 @@ static int goldfish_nand_write_oob(struct mtd_info *mtd, loff_t ofs,
	return 0;
	return 0;


invalid_arg:
invalid_arg:
	pr_err("goldfish_nand_write_oob: invalid write, start %llx, len %zx, ooblen %zx, dev_size %llx, write_size %x\n",
	pr_err("%s: invalid write, start %llx, len %zx, ooblen %zx, dev_size %llx, write_size %x\n",
	       ofs, ops->len, ops->ooblen, mtd->size, mtd->writesize);
	       __func__, ofs, ops->len, ops->ooblen, mtd->size, mtd->writesize);
	return -EINVAL;
	return -EINVAL;
}
}


@@ -211,8 +211,8 @@ static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len,
	return 0;
	return 0;


invalid_arg:
invalid_arg:
	pr_err("goldfish_nand_read: invalid read, start %llx, len %zx, dev_size %llx, write_size %x\n",
	pr_err("%s: invalid read, start %llx, len %zx, dev_size %llx, write_size %x\n",
	       from, len, mtd->size, mtd->writesize);
	       __func__, from, len, mtd->size, mtd->writesize);
	return -EINVAL;
	return -EINVAL;
}
}


@@ -233,8 +233,8 @@ static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len,
	return 0;
	return 0;


invalid_arg:
invalid_arg:
	pr_err("goldfish_nand_write: invalid write, start %llx, len %zx, dev_size %llx, write_size %x\n",
	pr_err("%s: invalid write, start %llx, len %zx, dev_size %llx, write_size %x\n",
	       to, len, mtd->size, mtd->writesize);
	       __func__, to, len, mtd->size, mtd->writesize);
	return -EINVAL;
	return -EINVAL;
}
}


@@ -340,8 +340,8 @@ static int goldfish_nand_init_device(struct platform_device *pdev,
				   name);
				   name);
	if (result != name_len) {
	if (result != name_len) {
		dev_err(&pdev->dev,
		dev_err(&pdev->dev,
			"goldfish_nand_init_device failed to get dev name %d != %d\n",
			"%s: failed to get dev name %d != %d\n",
			       result, name_len);
			       __func__, result, name_len);
		return -ENODEV;
		return -ENODEV;
	}
	}
	((char *)mtd->name)[name_len] = '\0';
	((char *)mtd->name)[name_len] = '\0';