forked from auracaster/openocd
coding style: fix space around pointer's asterisk
The script checkpatch available in new Linux kernel offers an
experimental feature for automatically fix the code in place.
While still experimental, the feature works quite well for simple
fixes, like spacing.
This patch has been created automatically with the script under
review for inclusion in OpenOCD, using the command
find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types POINTER_LOCATION --fix-inplace -f {} \;
then manually reviewed.
OpenOCD coding style does not mention the space around pointer's
asterisk, so no check is enforced. This patch only makes the style
uniform across the files.
The patch only changes amount and position of whitespace, thus
the following commands show empty diff
git diff -w
git log -w -p
git log -w --stat
Change-Id: Iefb4998e69bebdfe0d1ae65cadfc8d2c4f166d13
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5197
Tested-by: jenkins
This commit is contained in:
@@ -213,7 +213,7 @@ static int ftdi_set_signal(const struct signal *s, char value)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int ftdi_get_signal(const struct signal *s, uint16_t * value_out)
|
||||
static int ftdi_get_signal(const struct signal *s, uint16_t *value_out)
|
||||
{
|
||||
uint8_t data_low = 0;
|
||||
uint8_t data_high = 0;
|
||||
|
||||
@@ -297,7 +297,7 @@ static int osbdm_swap(struct osbdm *osbdm, void *tms, void *tdi,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int osbdm_flush(struct osbdm *osbdm, struct queue* queue)
|
||||
static int osbdm_flush(struct osbdm *osbdm, struct queue *queue)
|
||||
{
|
||||
uint8_t tms[DIV_ROUND_UP(OSBDM_SWAP_MAX, 8)];
|
||||
uint8_t tdi[DIV_ROUND_UP(OSBDM_SWAP_MAX, 8)];
|
||||
|
||||
@@ -162,8 +162,8 @@ void jtag_tap_free(struct jtag_tap *tap);
|
||||
|
||||
struct jtag_tap *jtag_all_taps(void);
|
||||
const char *jtag_tap_name(const struct jtag_tap *tap);
|
||||
struct jtag_tap *jtag_tap_by_string(const char* dotted_name);
|
||||
struct jtag_tap *jtag_tap_by_jim_obj(Jim_Interp* interp, Jim_Obj *obj);
|
||||
struct jtag_tap *jtag_tap_by_string(const char *dotted_name);
|
||||
struct jtag_tap *jtag_tap_by_jim_obj(Jim_Interp *interp, Jim_Obj *obj);
|
||||
struct jtag_tap *jtag_tap_by_position(unsigned abs_position);
|
||||
struct jtag_tap *jtag_tap_next_enabled(struct jtag_tap *p);
|
||||
unsigned jtag_tap_count_enabled(void);
|
||||
|
||||
Reference in New Issue
Block a user