Skip to content

Commit a884cdf

Browse files
krzklag-linaro
authored andcommitted
backlight: arcxcnn_bl: Drop of_match_ptr for ID table
The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/video/backlight/arcxcnn_bl.c:378:34: error: ‘arcxcnn_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230311173556.263086-2-krzysztof.kozlowski@linaro.org
1 parent c857b87 commit a884cdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/backlight/arcxcnn_bl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ MODULE_DEVICE_TABLE(i2c, arcxcnn_ids);
390390
static struct i2c_driver arcxcnn_driver = {
391391
.driver = {
392392
.name = "arcxcnn_bl",
393-
.of_match_table = of_match_ptr(arcxcnn_dt_ids),
393+
.of_match_table = arcxcnn_dt_ids,
394394
},
395395
.probe_new = arcxcnn_probe,
396396
.remove = arcxcnn_remove,

0 commit comments

Comments
 (0)