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-wei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1x0267AKxVWUJVW8JbIYCTnIWIevJa73Uj 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,