Skip to content

Commit af89dfd

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: uclogic: Standardize test name prefix
Commit 961bcdf ("drm/tests: Change "igt_" prefix to "drm_test_"") introduced a new naming convention for the KUnit tests present in the DRM subsystem: "drm_test_<module>_<test name>". 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_<module>_<test name>". Signed-off-by: José Expósito <[email protected]> Reviewed-by: Maíra Canal <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent f9ce4db commit af89dfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/hid/hid-uclogic-params-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static void uclogic_parse_ugee_v2_desc_case_desc(struct uclogic_parse_ugee_v2_de
136136
KUNIT_ARRAY_PARAM(uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_cases,
137137
uclogic_parse_ugee_v2_desc_case_desc);
138138

139-
static void uclogic_parse_ugee_v2_desc_test(struct kunit *test)
139+
static void hid_test_uclogic_parse_ugee_v2_desc(struct kunit *test)
140140
{
141141
int res;
142142
s32 desc_params[UCLOGIC_RDESC_PH_ID_NUM];
@@ -175,7 +175,7 @@ static void uclogic_parse_ugee_v2_desc_test(struct kunit *test)
175175
}
176176

177177
static struct kunit_case hid_uclogic_params_test_cases[] = {
178-
KUNIT_CASE_PARAM(uclogic_parse_ugee_v2_desc_test,
178+
KUNIT_CASE_PARAM(hid_test_uclogic_parse_ugee_v2_desc,
179179
uclogic_parse_ugee_v2_desc_gen_params),
180180
{}
181181
};

drivers/hid/hid-uclogic-rdesc-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void uclogic_template_case_desc(struct uclogic_template_case *t,
187187
KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases,
188188
uclogic_template_case_desc);
189189

190-
static void uclogic_template_test(struct kunit *test)
190+
static void hid_test_uclogic_template(struct kunit *test)
191191
{
192192
__u8 *res;
193193
const struct uclogic_template_case *params = test->param_value;
@@ -203,7 +203,7 @@ static void uclogic_template_test(struct kunit *test)
203203
}
204204

205205
static struct kunit_case hid_uclogic_rdesc_test_cases[] = {
206-
KUNIT_CASE_PARAM(uclogic_template_test, uclogic_template_gen_params),
206+
KUNIT_CASE_PARAM(hid_test_uclogic_template, uclogic_template_gen_params),
207207
{}
208208
};
209209

0 commit comments

Comments
 (0)