Message ID | 20210926105003.2716-2-bmeng.cn@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/3] hw/char: ibex_uart: Register device in 'input' category | expand |
On 9/26/21 12:50, Bin Meng wrote: > The category of shakti_uart device is not set. Put it into the > 'input' category. > > Signed-off-by: Bin Meng <bmeng.cn@gmail.com> > --- > > hw/char/shakti_uart.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
On Sun, Sep 26, 2021 at 8:56 PM Bin Meng <bmeng.cn@gmail.com> wrote: > > The category of shakti_uart device is not set. Put it into the > 'input' category. > > Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Alistair > --- > > hw/char/shakti_uart.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c > index 6870821325..98b142c7df 100644 > --- a/hw/char/shakti_uart.c > +++ b/hw/char/shakti_uart.c > @@ -168,6 +168,7 @@ static void shakti_uart_class_init(ObjectClass *klass, void *data) > dc->reset = shakti_uart_reset; > dc->realize = shakti_uart_realize; > device_class_set_props(dc, shakti_uart_properties); > + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > > static const TypeInfo shakti_uart_info = { > -- > 2.25.1 > >
diff --git a/hw/char/shakti_uart.c b/hw/char/shakti_uart.c index 6870821325..98b142c7df 100644 --- a/hw/char/shakti_uart.c +++ b/hw/char/shakti_uart.c @@ -168,6 +168,7 @@ static void shakti_uart_class_init(ObjectClass *klass, void *data) dc->reset = shakti_uart_reset; dc->realize = shakti_uart_realize; device_class_set_props(dc, shakti_uart_properties); + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); } static const TypeInfo shakti_uart_info = {
The category of shakti_uart device is not set. Put it into the 'input' category. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- hw/char/shakti_uart.c | 1 + 1 file changed, 1 insertion(+)