From patchwork Mon Sep 5 15:26:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 602910 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 CE2C5ECAAD3 for ; Mon, 5 Sep 2022 15:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238822AbiIEPKl (ORCPT ); Mon, 5 Sep 2022 11:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238786AbiIEPKV (ORCPT ); Mon, 5 Sep 2022 11:10:21 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172D72AE0; Mon, 5 Sep 2022 08:09:25 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4MLsMD3f3yzKGHV; Mon, 5 Sep 2022 23:07:36 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.102.38]) by APP2 (Coremail) with SMTP id Syh0CgC3VW8hERZjhLKnAQ--.57944S4; Mon, 05 Sep 2022 23:09:22 +0800 (CST) From: Wei Yongjun To: Pavel Machek , Oleh Kravchenko Cc: Wei Yongjun , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning Date: Mon, 5 Sep 2022 15:26:57 +0000 Message-Id: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3VW8hERZjhLKnAQ--.57944S4 X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Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org From: Wei Yongjun Add spi_device_id entries to silent following SPI warning: SPI driver leds_cr0014114 has no spi_device_id for crane,cr0014114 Signed-off-by: Wei Yongjun Acked-by: Oleh Kravchenko --- drivers/leds/leds-cr0014114.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c index c87686bd7c18..095455163246 100644 --- a/drivers/leds/leds-cr0014114.c +++ b/drivers/leds/leds-cr0014114.c @@ -281,9 +281,16 @@ static const struct of_device_id cr0014114_dt_ids[] = { MODULE_DEVICE_TABLE(of, cr0014114_dt_ids); +static const struct spi_device_id cr0014114_spi_ids[] = { + { "cr0014114" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, cr0014114_spi_ids); + static struct spi_driver cr0014114_driver = { .probe = cr0014114_probe, .remove = cr0014114_remove, + .id_table = cr0014114_spi_ids, .driver = { .name = KBUILD_MODNAME, .of_match_table = cr0014114_dt_ids,