qdev: Make qdev_propinfo_get_uint16() static
There are no users of the function outside qdev-properties.c. Make function static and rename it to get_uint16(). Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201211220529.2290218-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
c7525b183c
commit
364f7e833d
@ -20,8 +20,6 @@ void qdev_propinfo_set_default_value_int(ObjectProperty *op,
|
||||
void qdev_propinfo_set_default_value_uint(ObjectProperty *op,
|
||||
const Property *prop);
|
||||
|
||||
void qdev_propinfo_get_uint16(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp);
|
||||
void qdev_propinfo_get_int32(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp);
|
||||
void qdev_propinfo_get_size32(Object *obj, Visitor *v, const char *name,
|
||||
|
@ -278,8 +278,8 @@ const PropertyInfo qdev_prop_uint8 = {
|
||||
|
||||
/* --- 16bit integer --- */
|
||||
|
||||
void qdev_propinfo_get_uint16(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp)
|
||||
static void get_uint16(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp)
|
||||
{
|
||||
Property *prop = opaque;
|
||||
uint16_t *ptr = qdev_get_prop_ptr(obj, prop);
|
||||
@ -304,7 +304,7 @@ static void set_uint16(Object *obj, Visitor *v, const char *name,
|
||||
|
||||
const PropertyInfo qdev_prop_uint16 = {
|
||||
.name = "uint16",
|
||||
.get = qdev_propinfo_get_uint16,
|
||||
.get = get_uint16,
|
||||
.set = set_uint16,
|
||||
.set_default_value = qdev_propinfo_set_default_value_uint,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user