Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3591805rwb; Mon, 5 Sep 2022 14:53:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/AkavMv14muaVniOzmzp4kWEWxoap5VvKsyqt7rZNotYfIEA/D3NjOg3O0VmrYRymExrr X-Received: by 2002:a17:902:aa41:b0:173:1571:4025 with SMTP id c1-20020a170902aa4100b0017315714025mr51639746plr.110.1662414837313; Mon, 05 Sep 2022 14:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662414837; cv=none; d=google.com; s=arc-20160816; b=iDbYDV2xUO1QxCV0GUg12sMPAxDwmDkrh4AHyOo3k6SF2eyWkzczpNOsYg1BNa2o0u vW16pEnQ+wO19of1rS9aiWtGVquEvcfCivDj0wEhgXCsftfrE4+A7FUjyBfz49u9N7pO FaiUcfo7pZx9l8OBCKIyOQ9mSUELZvn6JV+rra+Z1jTOFuJn1MaI9w38hoaubBwrMQoP JeYt/Xc9jZ2ERH50tweLYNOe6xUB0EKG+Mvdhv3314xte+X+qse4OlZCG8U8p/dPtisS mXL4WMTAOukXrfT1x3woiLYtiznhy/ZMsLb+dsDi+q0Uq6XLxVrQDf9a7JlyxmYlIf79 MmeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=xMHwxsIK2VppGLov2TzYplmvKxRcEh2A7+5pqgP4E5Q=; b=t9xkr4qLDxjltsAY7MoOf8Ud/eU19v0TJu5i1l9aAtBJ4l2C7AgfY3plBwEDnmLRLS hN1NPeWiS8CNit4i/uTJgbCCWWtCTUwPxqUiEq6VFGV0G1yQBIJ4o9inSrxMcchnqMAH CPYyXH4KtkLCeBeLtQdaifYEUH06i9PXEEmbZoV894AQIzCy5rBbziCzkmXUE+ouw7pR pI2ibGc78HCemTBmcwwffTKnFd7WjAXnhV8GVeR48GBBv5VBQ3zsU9JFC3unQO4ndfXp RTaqNUAasbGqeIUM/3Pd4DP5WGVYji1DlT2BGObqDGq6ipxr6QF5J2+YUjfFDfxfHpiz pNqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc3-20020a17090b1c0300b001fdcaa15a56si4547455pjb.112.2022.09.05.14.53.46; Mon, 05 Sep 2022 14:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231869AbiIEVBl (ORCPT + 99 others); Mon, 5 Sep 2022 17:01:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiIEVBj (ORCPT ); Mon, 5 Sep 2022 17:01:39 -0400 X-Greylist: delayed 489 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 05 Sep 2022 14:01:37 PDT Received: from smtp.220.in.ua (smtp.220.in.ua [89.184.67.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C74656BA7; Mon, 5 Sep 2022 14:01:36 -0700 (PDT) Received: from [192.168.202.100] (unknown [95.67.115.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.220.in.ua (Postfix) with ESMTPSA id 906761A26550; Mon, 5 Sep 2022 23:53:47 +0300 (EEST) Message-ID: <662e227f-b759-df28-8cbf-a2223a1df6b6@kaa.org.ua> Date: Mon, 5 Sep 2022 23:53:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 2/3] leds: el15203000: silent no spi_device_id warning Content-Language: uk-UA To: Wei Yongjun , Pavel Machek Cc: Wei Yongjun , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220905152659.4152483-1-weiyongjun@huaweicloud.com> <20220905152659.4152483-2-weiyongjun@huaweicloud.com> From: Oleh Kravchenko In-Reply-To: <20220905152659.4152483-2-weiyongjun@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Oleh Kravchenko 05.09.22 18:26, Wei Yongjun пише: > 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 > --- > 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,