From patchwork Thu Nov 10 17:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Sm9zw6kgRXhww7NzaXRv?= X-Patchwork-Id: 18247 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp285735wru; Thu, 10 Nov 2022 09:51:19 -0800 (PST) X-Google-Smtp-Source: AMsMyM7D1mL3DVFg8iA5C8HZ9V7SmcDqBZ33gUZq0j0GWsR6d9ak6dbic15B5QlOTvxgemft2EOK X-Received: by 2002:a17:903:cd:b0:186:878e:3b08 with SMTP id x13-20020a17090300cd00b00186878e3b08mr64363988plc.93.1668102678868; Thu, 10 Nov 2022 09:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668102678; cv=none; d=google.com; s=arc-20160816; b=JWzIKhR27tNAvEYbnZdYE3cB6YEJGLYeK4DVzpmhB0RTBw7HuqRGa0CZucZeuIHlj0 h5kYiDM+KAa/ups6dmekW/AaWxu1B8HbfHKN1ZprNITEICbrV7+wTmgrj4NZYQBdzONo A6hb4V0YQQKiwlRYtaygJs7m/gJErfb3trJmhsbeR0e/3I1qy8D1cSGhncDB7Z2apAzq nuqsltsLtVqH/195GBG/PbPPPOrIcBDlpQcdG7VYoLnoPph3lorcslgDI50gspfm/b9r H3O2QgzbpIBVLsQnsCCxWo3kqcLmVwDEcL3nOF732kG980W9FhtRrO0J6EO4iwHG3QHY I/OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BdBVXocSnFGsbcNId82TAu2zb7JGiMOw9Hh/Hs4GgV4=; b=E2OxCCzVyFtc7ERFjHDauyTDe+IO2LWAq8WgewICCgDhPTEeDNNldrJlv3td2dU5qb +TUMV+DFRpwoJYhTt5BBZFoeaKrSkNvn+aXofibP/f7rEVRtTD59Lz0ry47eTboeTvvh 0I0AJ/87CQyfqd17gP2pt2ATcH2sKQsFdFKwQs/bxIkqvA36W+Uj9l2KFdOgWG/VJYo/ UV7IYqwg2m1EHwicou3QuTYPTeBQzozkNSFN7TKsN5Bo2DVLsg7/YSnv1fXCHOIKTpyj xlxOHB8e65fEApTSUccWWDx7oZT7N2v1Snk7wSb/J40maJtDbiSS+bJaIjOJyok+EWwh BMzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ISXDYr7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170902d2cd00b00178380f525bsi24339270plc.547.2022.11.10.09.51.04; Thu, 10 Nov 2022 09:51:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ISXDYr7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbiKJRuB (ORCPT + 99 others); Thu, 10 Nov 2022 12:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbiKJRuA (ORCPT ); Thu, 10 Nov 2022 12:50:00 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F723C6CE; Thu, 10 Nov 2022 09:49:59 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5so1609426wmo.1; Thu, 10 Nov 2022 09:49:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BdBVXocSnFGsbcNId82TAu2zb7JGiMOw9Hh/Hs4GgV4=; b=ISXDYr7ctt69RJPDy8JEQboP41ce+EvX64xL6JA+TXVs8P98ZbaC+bHMegKhnF/lLV RjFUNJgXTmciOQSVKg2Iz34bUWZouKJgcLLfirX5fFFU28UkY25aWKAI8QvgrvGoh5Ev 5GvMop8qAIv2qWG2/ECQO44uLqxwzHEyDORrjI73S+11Ek0wgaELHS4E2JXqYX3ixuSl XU2IWqspQ0IDR9heNvAze7+XHfJlgW7FJODVkeEuVnWw/oOiW4HH1hvTviuSmP1JPpcp hYAi8/vQnX2g+7c/8T+fc0KZ/gOVBoCAVw4yuaVDfHOqOVFHdJJMcRqrHjNGNKc3aAMK eaQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BdBVXocSnFGsbcNId82TAu2zb7JGiMOw9Hh/Hs4GgV4=; b=rWn5VXw9Z7qXJa+Wh9chALf7K63CCXkgPgEYWzlW0jnKeYmLrk8viYYy407paBw31R XPl8QcntuDUz2nlkraprUAyomXqNj0d/PStJzI7LynBmGrjjacdgPmrWLekyMDgOaFdM VJEGn89ZWjPcJWhgLqmpBIDtx3JbzPf1OUV/lGo9uzqqf4C2IbF2LLkCg3z/9E7dYGgA DZkybm7OK71CmmkYBZcLewklUM9tUARjeFZe73hoBGnBtV1UJmemZ5B8EUeYl2tQMzvu l9fqKeWUdltI/59fpEiMOAxw7oYMS9/7km8aubAJLjElKP77G5+xarzD/d7Ae7ugfXPv n8Gw== X-Gm-Message-State: ACrzQf3BW0npmchfxU3OxyafKN1bJv/mY93J336/lYEs5bC5eW943VwO 9pmPFK4q74lWDVo/frEYO2A= X-Received: by 2002:a05:600c:a4b:b0:3b9:859d:7ed6 with SMTP id c11-20020a05600c0a4b00b003b9859d7ed6mr54719981wmq.169.1668102597818; Thu, 10 Nov 2022 09:49:57 -0800 (PST) Received: from localhost.localdomain ([94.73.35.109]) by smtp.gmail.com with ESMTPSA id q19-20020a1ce913000000b003b49ab8ff53sm272113wmc.8.2022.11.10.09.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 09:49:57 -0800 (PST) From: =?utf-8?b?Sm9zw6kgRXhww7NzaXRv?= To: jikos@kernel.org Cc: benjamin.tissoires@redhat.com, mairacanal@riseup.net, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?Sm9z?= =?utf-8?b?w6kgRXhww7NzaXRv?= Subject: [PATCH] HID: uclogic: Standardize test name prefix Date: Thu, 10 Nov 2022 18:49:55 +0100 Message-Id: <20221110174955.398885-1-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749132434649243482?= X-GMAIL-MSGID: =?utf-8?q?1749132434649243482?= Commit 961bcdf956a4 ("drm/tests: Change "igt_" prefix to "drm_test_"") introduced a new naming convention for the KUnit tests present in the DRM subsystem: "drm_test__". This naming convention is very convenient because it allows to easily run all subsystem tests or all driver tests using kunit.py's wildcards. Follow the naming conventions used in the DRM subsystem adapted to the HID subsystem: "hid_test__". Signed-off-by: José Expósito Reviewed-by: Maíra Canal --- drivers/hid/hid-uclogic-params-test.c | 4 ++-- drivers/hid/hid-uclogic-rdesc-test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-uclogic-params-test.c b/drivers/hid/hid-uclogic-params-test.c index 57ef5d3e4b74..bfa7ccb7d1e8 100644 --- a/drivers/hid/hid-uclogic-params-test.c +++ b/drivers/hid/hid-uclogic-params-test.c @@ -136,7 +136,7 @@ static void uclogic_parse_ugee_v2_desc_case_desc(struct uclogic_parse_ugee_v2_de KUNIT_ARRAY_PARAM(uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_cases, uclogic_parse_ugee_v2_desc_case_desc); -static void uclogic_parse_ugee_v2_desc_test(struct kunit *test) +static void hid_test_uclogic_parse_ugee_v2_desc(struct kunit *test) { int res; s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM]; @@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test) } static struct kunit_case hid_uclogic_params_test_cases[] = { - KUNIT_CASE_PARAM(uclogic_parse_ugee_v2_desc_test, + KUNIT_CASE_PARAM(hid_test_uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_gen_params), {} }; diff --git a/drivers/hid/hid-uclogic-rdesc-test.c b/drivers/hid/hid-uclogic-rdesc-test.c index 3971a0854c3e..b429c541bf2f 100644 --- a/drivers/hid/hid-uclogic-rdesc-test.c +++ b/drivers/hid/hid-uclogic-rdesc-test.c @@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t, KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases, uclogic_template_case_desc); -static void uclogic_template_test(struct kunit *test) +static void hid_test_uclogic_template(struct kunit *test) { __u8 *res; const struct uclogic_template_case *params = test->param_value; @@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test) } static struct kunit_case hid_uclogic_rdesc_test_cases[] = { - KUNIT_CASE_PARAM(uclogic_template_test, uclogic_template_gen_params), + KUNIT_CASE_PARAM(hid_test_uclogic_template, uclogic_template_gen_params), {} };