From b4e76f6942cce2b45dd28933ef76979fd8876ef4 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Mon, 21 Oct 2024 22:46:17 +0800 Subject: [PATCH] mtp-responder: Disable device icon by default Signed-off-by: wangjianyu3 --- src/mtp_entity_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mtp_entity_device.c b/src/mtp_entity_device.c index 1b9d7db..c8630c5 100644 --- a/src/mtp_entity_device.c +++ b/src/mtp_entity_device.c @@ -366,10 +366,12 @@ static mtp_bool __init_device_props() i++; #endif /*MTP_SUPPORT_DEVICE_CLASS*/ +#ifdef MTP_SUPPORT_DEVICE_ICON dev_prop = &(g_device.device_prop_list[i]); _prop_init_device_property_desc(dev_prop, MTP_PROPERTYCODE_DEVICEICON, PTP_DATATYPE_AUINT8, PTP_PROPGETSET_GETONLY, NONE); i++; +#endif /*MTP_SUPPORT_DEVICE_ICON*/ already_init = TRUE;