mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
hw/gpio: replace HWADDR_PRIx with PRIx64
1. replace HWADDR_PRIx with PRIx64 2. fix indent issue Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220525053444.27228-5-jamin_lin@aspeedtech.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
247c00294a
commit
554c294514
2 changed files with 5 additions and 5 deletions
|
@ -561,7 +561,7 @@ static uint64_t aspeed_gpio_read(void *opaque, hwaddr offset, uint32_t size)
|
||||||
reg = &agc->reg_table[idx];
|
reg = &agc->reg_table[idx];
|
||||||
if (reg->set_idx >= agc->nr_gpio_sets) {
|
if (reg->set_idx >= agc->nr_gpio_sets) {
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: no getter for offset 0x%"
|
qemu_log_mask(LOG_GUEST_ERROR, "%s: no getter for offset 0x%"
|
||||||
HWADDR_PRIx"\n", __func__, offset);
|
PRIx64"\n", __func__, offset);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -611,7 +611,7 @@ static uint64_t aspeed_gpio_read(void *opaque, hwaddr offset, uint32_t size)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: no getter for offset 0x%"
|
qemu_log_mask(LOG_GUEST_ERROR, "%s: no getter for offset 0x%"
|
||||||
HWADDR_PRIx"\n", __func__, offset);
|
PRIx64"\n", __func__, offset);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -787,7 +787,7 @@ static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data,
|
||||||
reg = &agc->reg_table[idx];
|
reg = &agc->reg_table[idx];
|
||||||
if (reg->set_idx >= agc->nr_gpio_sets) {
|
if (reg->set_idx >= agc->nr_gpio_sets) {
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: no setter for offset 0x%"
|
qemu_log_mask(LOG_GUEST_ERROR, "%s: no setter for offset 0x%"
|
||||||
HWADDR_PRIx"\n", __func__, offset);
|
PRIx64"\n", __func__, offset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -872,7 +872,7 @@ static void aspeed_gpio_write(void *opaque, hwaddr offset, uint64_t data,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "%s: no setter for offset 0x%"
|
qemu_log_mask(LOG_GUEST_ERROR, "%s: no setter for offset 0x%"
|
||||||
HWADDR_PRIx"\n", __func__, offset);
|
PRIx64"\n", __func__, offset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
aspeed_gpio_update(s, set, set->data_value);
|
aspeed_gpio_update(s, set, set->data_value);
|
||||||
|
|
|
@ -67,7 +67,7 @@ enum GPIORegIndexType {
|
||||||
typedef struct AspeedGPIOReg {
|
typedef struct AspeedGPIOReg {
|
||||||
uint16_t set_idx;
|
uint16_t set_idx;
|
||||||
enum GPIORegType type;
|
enum GPIORegType type;
|
||||||
} AspeedGPIOReg;
|
} AspeedGPIOReg;
|
||||||
|
|
||||||
struct AspeedGPIOClass {
|
struct AspeedGPIOClass {
|
||||||
SysBusDevice parent_obj;
|
SysBusDevice parent_obj;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue