mtd: lpddr: Move function print_drs_error to lpddr_cmds.c
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 27 Apr 2020 19:56:08 +0000 (14:56 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Aug 2020 12:14:46 +0000 (14:14 +0200)
commit1a64026eda1642c81425e48550fd4bd3f73d0ab5
tree712b153aa1ed73217da71a1fcbe84e341826e43b
parent518693abe6e3f57606ec18892e9135abbc04b361
mtd: lpddr: Move function print_drs_error to lpddr_cmds.c

Function print_drs_error is only used in drivers/mtd/lpddr/lpddr_cmds.c
so, better to move it there.

Also, notice that there's no need for inline as the function is used
once.  Lastly, fix the following checkpatch warning:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+static void print_drs_error(unsigned dsr)

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/e0063cbd65f3b47be1db34efc494ea3047634d88.1588016644.git.gustavo@embeddedor.com
drivers/mtd/lpddr/lpddr_cmds.c
include/linux/mtd/pfow.h