mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
GPIO: pca953x: Remove compilation warnings on arm64
Warnings: w+../drivers/gpio/pca953x.c: In function ‘do_pca953x’: w+../drivers/gpio/pca953x.c:220:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] w+../drivers/gpio/pca953x.c:233:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
f746b4cfd0
commit
01b2a69907
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ int do_pca953x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
|
|
||||||
/* All commands but "device" require 'maxargs' arguments */
|
/* All commands but "device" require 'maxargs' arguments */
|
||||||
if (!c || !((argc == (c->maxargs)) ||
|
if (!c || !((argc == (c->maxargs)) ||
|
||||||
(((int)c->cmd == PCA953X_CMD_DEVICE) &&
|
(((long)c->cmd == PCA953X_CMD_DEVICE) &&
|
||||||
(argc == (c->maxargs - 1))))) {
|
(argc == (c->maxargs - 1))))) {
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ int do_pca953x(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
if (argc > 3)
|
if (argc > 3)
|
||||||
ul_arg3 = simple_strtoul(argv[3], NULL, 16) & 0x1;
|
ul_arg3 = simple_strtoul(argv[3], NULL, 16) & 0x1;
|
||||||
|
|
||||||
switch ((int)c->cmd) {
|
switch ((long)c->cmd) {
|
||||||
#ifdef CONFIG_CMD_PCA953X_INFO
|
#ifdef CONFIG_CMD_PCA953X_INFO
|
||||||
case PCA953X_CMD_INFO:
|
case PCA953X_CMD_INFO:
|
||||||
ret = pca953x_info(chip);
|
ret = pca953x_info(chip);
|
||||||
|
|
Loading…
Add table
Reference in a new issue