From patchwork Sat Mar 11 17:36:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CA18C74A4B for ; Sat, 11 Mar 2023 17:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbjCKRiD (ORCPT ); Sat, 11 Mar 2023 12:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjCKRhz (ORCPT ); Sat, 11 Mar 2023 12:37:55 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3B1C8592 for ; Sat, 11 Mar 2023 09:37:31 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id i34so33000391eda.7 for ; Sat, 11 Mar 2023 09:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=51J7ma9iyDiEzHar+KOLvIqKc+iCxvx6uDovr0nOXMg=; b=jgQY6/80LqgXtTIC1vgAyzfbe8AwY+LHUoUfe1K+cYgQgzaVPF6WvuR9nrzH7IoUs+ DaIBr9OuL2SMQfIiY096xCQbW3dAHoPoBuap7PVTUquW7qHWtzZNSaYzwlMecLRPaZl1 zARLQgo+5+PHYGAJb/J1XnWUgjNNJQujb8cPN0fdR1jpwaFM7wjYMkgPkOClKcZaYiuG 9Ixkx7jrnCIniVQe4gQRL2SWIX15beqFb9sQ2zPT1GS9LwKgCwDdkwI2tDJC+4LV99xi 4qoUA99NPSmA2B79tLl5MjnnIkFswjf7SYcNeZe57vQRaTNYp5kJD0A9UPWyMlVX31HH 9Bvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=51J7ma9iyDiEzHar+KOLvIqKc+iCxvx6uDovr0nOXMg=; b=Fp7JQd30Ej2oC9gdVUCyonpDUb2gL5gQQ0w3Bfp8JEIZeeWxElobbQwqIviFo1zm8z FHjnjTIBtOIA+DeTKmFZBgZ0kK4WPoFiP4Ki0AIGDKGPOtIVhfSq4vbRMS71si2vmDBN vHdUmzbCpu22TjjZVJnh7QUQ7XR/EzHkwUnKZZSnuyZwxfoY2bef8BxKe+DzMDRL9+GD 4MzCcoTQw8wm6PQbWHOCkZsnyozmb9/a0QBqM6wyNyR867kM5mYYcHhMwTQ6PjwvJztL fHgWQpk7irlvKtk5LyT4P0pczMyLk3B2JEcb4U+3KOF+C+NAQtpjMXD2BkbM4qoejYZJ I/AQ== X-Gm-Message-State: AO0yUKVHShkr2wDFuy+MucIbzyC0mnJGcL6imHtRdCZdtnKVKjbwrVQ3 hkG7DRP2gW3dowUpC5MkQ+xgSw== X-Google-Smtp-Source: AK7set9r7turVfzVMRHL6C0LQnIOCXg9/qqvDM83ESDE0B20wvaErRVpq4LpT0V1m8cTOfa6X4NUzQ== X-Received: by 2002:a17:907:7da6:b0:888:b764:54e5 with SMTP id oz38-20020a1709077da600b00888b76454e5mr34727430ejc.71.1678556195869; Sat, 11 Mar 2023 09:36:35 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id jy2-20020a170907762200b008de729c8a03sm1315253ejc.38.2023.03.11.09.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:35 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Mathias Nyman , Richard Leitner , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/7] usb: gadget: max3420_udc: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:23 +0100 Message-Id: <20230311173624.263189-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173624.263189-1-krzysztof.kozlowski@linaro.org> References: <20230311173624.263189-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/usb/gadget/udc/max3420_udc.c:1312:34: error: ‘max3420_udc_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/gadget/udc/max3420_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/max3420_udc.c b/drivers/usb/gadget/udc/max3420_udc.c index ddf0ed3eb4f2..12c519f32bf7 100644 --- a/drivers/usb/gadget/udc/max3420_udc.c +++ b/drivers/usb/gadget/udc/max3420_udc.c @@ -1319,7 +1319,7 @@ MODULE_DEVICE_TABLE(of, max3420_udc_of_match); static struct spi_driver max3420_driver = { .driver = { .name = "max3420-udc", - .of_match_table = of_match_ptr(max3420_udc_of_match), + .of_match_table = max3420_udc_of_match, }, .probe = max3420_probe, .remove = max3420_remove,