target: convert 'unsigned' to 'unsigned int'
Conversion done with checkpatch --fix-inplace -types UNSPECIFIED_INT Ignore the cast as they could be better addressed. Fix only minor additional checkpatch issue (spacing and line length). Use Checkpatch-ignore below for the function pointers in the file 'armv7a_cache_l2x.h' that do not assign the identifier names to the function arguments. Most of these struct are unused and should be fixed or dropped. Checkpatch-ignore: FUNCTION_ARGUMENTS Change-Id: I8f27e68eb3502e431c1ba801b362358105f9f2dc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8480 Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de>
This commit is contained in:
@@ -485,7 +485,7 @@ static int swd_queue_ap_abort(struct adiv5_dap *dap, uint8_t *ack)
|
||||
return check_sync(dap);
|
||||
}
|
||||
|
||||
static int swd_queue_dp_read(struct adiv5_dap *dap, unsigned reg,
|
||||
static int swd_queue_dp_read(struct adiv5_dap *dap, unsigned int reg,
|
||||
uint32_t *data)
|
||||
{
|
||||
int retval = swd_check_reconnect(dap);
|
||||
@@ -499,7 +499,7 @@ static int swd_queue_dp_read(struct adiv5_dap *dap, unsigned reg,
|
||||
return swd_queue_dp_read_inner(dap, reg, data);
|
||||
}
|
||||
|
||||
static int swd_queue_dp_write(struct adiv5_dap *dap, unsigned reg,
|
||||
static int swd_queue_dp_write(struct adiv5_dap *dap, unsigned int reg,
|
||||
uint32_t data)
|
||||
{
|
||||
const struct swd_driver *swd = adiv5_dap_swd_driver(dap);
|
||||
@@ -517,7 +517,7 @@ static int swd_queue_dp_write(struct adiv5_dap *dap, unsigned reg,
|
||||
}
|
||||
|
||||
/** Select the AP register bank */
|
||||
static int swd_queue_ap_bankselect(struct adiv5_ap *ap, unsigned reg)
|
||||
static int swd_queue_ap_bankselect(struct adiv5_ap *ap, unsigned int reg)
|
||||
{
|
||||
int retval;
|
||||
struct adiv5_dap *dap = ap->dap;
|
||||
@@ -567,7 +567,7 @@ static int swd_queue_ap_bankselect(struct adiv5_ap *ap, unsigned reg)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int swd_queue_ap_read(struct adiv5_ap *ap, unsigned reg,
|
||||
static int swd_queue_ap_read(struct adiv5_ap *ap, unsigned int reg,
|
||||
uint32_t *data)
|
||||
{
|
||||
struct adiv5_dap *dap = ap->dap;
|
||||
@@ -592,7 +592,7 @@ static int swd_queue_ap_read(struct adiv5_ap *ap, unsigned reg,
|
||||
return check_sync(dap);
|
||||
}
|
||||
|
||||
static int swd_queue_ap_write(struct adiv5_ap *ap, unsigned reg,
|
||||
static int swd_queue_ap_write(struct adiv5_ap *ap, unsigned int reg,
|
||||
uint32_t data)
|
||||
{
|
||||
struct adiv5_dap *dap = ap->dap;
|
||||
|
||||
Reference in New Issue
Block a user