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, From patchwork Mon Sep 5 15:26:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 602911 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 1ADC3ECAAD5 for ; Mon, 5 Sep 2022 15:10:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238808AbiIEPKc (ORCPT ); Mon, 5 Sep 2022 11:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238774AbiIEPKT (ORCPT ); Mon, 5 Sep 2022 11:10:19 -0400 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185B7273C; Mon, 5 Sep 2022 08:09:25 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4MLsMF4Tcxz6S312; Mon, 5 Sep 2022 23:07:37 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.102.38]) by APP2 (Coremail) with SMTP id Syh0CgC3VW8hERZjhLKnAQ--.57944S5; 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 2/3] leds: el15203000: silent no spi_device_id warning Date: Mon, 5 Sep 2022 15:26:58 +0000 Message-Id: <20220905152659.4152483-2-weiyongjun@huaweicloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> References: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3VW8hERZjhLKnAQ--.57944S5 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw4kCryrtrykCw13XryfXrb_yoWDurg_ua 4UXr4xWrWUGa1Fy3Wqvr45Zwn5uw42gr1DGr429ay5Zr1fXr1rGw4DAFWkAw18W3WxJFn8 CFn3XF18Cry7KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbskYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Jr0_Jr4l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7IE14v26r18M2 8IrcIa0xkI8VCY1x0267AKxVWUXVWUCwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK 021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F 4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0 oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7V C0I7IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j 6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r 4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF 67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2I x0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73Uj IFyTuYvjxUrg4SDUUUU X-CM-SenderInfo: 5zhl50pqjm3046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected 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_el15203000 has no spi_device_id for crane,el15203000 Signed-off-by: Wei Yongjun Acked-by: Oleh Kravchenko --- drivers/leds/leds-el15203000.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/leds/leds-el15203000.c b/drivers/leds/leds-el15203000.c index 7e7b617bcd56..e24b4399176e 100644 --- a/drivers/leds/leds-el15203000.c +++ b/drivers/leds/leds-el15203000.c @@ -329,9 +329,16 @@ static const struct of_device_id el15203000_dt_ids[] = { MODULE_DEVICE_TABLE(of, el15203000_dt_ids); +static const struct spi_device_id el15203000_spi_ids[] = { + { "el15203000" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, el15203000_spi_ids); + static struct spi_driver el15203000_driver = { .probe = el15203000_probe, .remove = el15203000_remove, + .id_table = el15203000_spi_ids, .driver = { .name = KBUILD_MODNAME, .of_match_table = el15203000_dt_ids, From patchwork Mon Sep 5 15:26:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 603239 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 760FCC54EE9 for ; Mon, 5 Sep 2022 15:10:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238778AbiIEPKe (ORCPT ); Mon, 5 Sep 2022 11:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238777AbiIEPKU (ORCPT ); Mon, 5 Sep 2022 11:10:20 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185452AF5; 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 4MLsMF1HL1zKH4P; Mon, 5 Sep 2022 23:07:37 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.102.38]) by APP2 (Coremail) with SMTP id Syh0CgC3VW8hERZjhLKnAQ--.57944S6; Mon, 05 Sep 2022 23:09:22 +0800 (CST) From: Wei Yongjun To: Pavel Machek , Lee Jones , Ulf Hansson , Christian Mauderer Cc: Wei Yongjun , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] leds: spi-byte: silent no spi_device_id warning Date: Mon, 5 Sep 2022 15:26:59 +0000 Message-Id: <20220905152659.4152483-3-weiyongjun@huaweicloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> References: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3VW8hERZjhLKnAQ--.57944S6 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw4kCryrtrWDJw1DKF45Wrg_yoWDZwc_Cr y7Xr9rZFWUCr1xtFy8ur15Zryv9a15Xr1vqa1293s0qF4fXr1YkFZFvry7t348ZrWfJrZr AFs8XFyrCr43WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbsAYFVCjjxCrM7AC8VAFwI0_Xr0_Wr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Jr0_Jr4l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7IE14v26r15M2 8IrcIa0xkI8VCY1x0267AKxVWUCVW8JwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK 021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F 4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0 oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7V C0I7IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j 6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r 4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF 67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2I x0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnU UI43ZEXa7IU1Wlk3UUUUU== X-CM-SenderInfo: 5zhl50pqjm3046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected 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_spi_byte has no spi_device_id for ubnt,acb-spi-led Signed-off-by: Wei Yongjun --- drivers/leds/leds-spi-byte.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/leds/leds-spi-byte.c b/drivers/leds/leds-spi-byte.c index 2bc5c99daf51..9d23dc9e7639 100644 --- a/drivers/leds/leds-spi-byte.c +++ b/drivers/leds/leds-spi-byte.c @@ -137,9 +137,16 @@ static void spi_byte_remove(struct spi_device *spi) mutex_destroy(&led->mutex); } +static const struct spi_device_id spi_byte_spi_ids[] = { + { "acb-spi-led", (kernel_ulong_t)&ubnt_acb_spi_led_cdef }, + { }, +}; +MODULE_DEVICE_TABLE(spi, spi_byte_spi_ids); + static struct spi_driver spi_byte_driver = { .probe = spi_byte_probe, .remove = spi_byte_remove, + .id_table = spi_byte_spi_ids, .driver = { .name = KBUILD_MODNAME, .of_match_table = spi_byte_dt_ids,