jtag: Rename 'hasidcode' to 'has_idcode'
While at it, fix some coding style issues. Change-Id: I8196045f46ce043ed0d28cb95470132b3a7de1bb Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8039 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
d3d287bf67
commit
f018cd7d90
+1
-1
@@ -157,7 +157,7 @@ static int intel_check_for_unique_id(struct intel_pld_device *intel_info)
|
||||
|
||||
static int intel_check_config(struct intel_pld_device *intel_info)
|
||||
{
|
||||
if (!intel_info->tap->hasidcode) {
|
||||
if (!intel_info->tap->has_idcode) {
|
||||
LOG_ERROR("no IDCODE");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
+2
-2
@@ -81,7 +81,7 @@ static int lattice_check_device_family(struct lattice_pld_device *lattice_device
|
||||
if (lattice_device->family != LATTICE_UNKNOWN && lattice_device->preload_length != 0)
|
||||
return ERROR_OK;
|
||||
|
||||
if (!lattice_device->tap || !lattice_device->tap->hasidcode)
|
||||
if (!lattice_device->tap || !lattice_device->tap->has_idcode)
|
||||
return ERROR_FAIL;
|
||||
|
||||
for (size_t i = 0; i < ARRAY_SIZE(lattice_devices); ++i) {
|
||||
@@ -280,7 +280,7 @@ static int lattice_load_command(struct pld_device *pld_device, const char *filen
|
||||
return ERROR_FAIL;
|
||||
struct jtag_tap *tap = lattice_device->tap;
|
||||
|
||||
if (!tap || !tap->hasidcode)
|
||||
if (!tap || !tap->has_idcode)
|
||||
return ERROR_FAIL;
|
||||
|
||||
int retval = lattice_check_device_family(lattice_device);
|
||||
|
||||
Reference in New Issue
Block a user