Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp987172rdb; Wed, 1 Nov 2023 08:18:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqDpXt7Ktin28/3nq1mamMjpRwMrfCe1jw488p/jql6lNFCDdEjutWQNHuxAvu1rYQ9QFa X-Received: by 2002:a05:6a00:845:b0:6be:23dd:d612 with SMTP id q5-20020a056a00084500b006be23ddd612mr17008889pfk.16.1698851920246; Wed, 01 Nov 2023 08:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698851920; cv=none; d=google.com; s=arc-20160816; b=UMkoBlx888+InbjrS/qRv4hGMW2gdEjmW9qzgf9TK8OTy6GnjrexPkttzhvDwl9IrC wqvgS3/gsrzbpqiwrsZ1IfW0VtqFRiJV8Y9ca6d1LbtosgsrjxTp4km8y4TwxVNeFydb n7xLa3km7vnJSuhd7rwYlsgo/d3XajhJH1jdq5JEag2h9ZnyuvVsdDu8opq0B/IoAZzS rbm4TO2b53trems/fJ8CHZMhFB/a6Rx7eQdNSj/RurX/xCmrWUN/hp7W1dW5cZ8KSeQ6 k+kRlOsFXSWapNIwzgPv9wAqkQoP7R3knY+RteRiX0N6cXLeJ8yZxWQMi/jfCcFC3UZs QYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3dj/SzQCMYEV8JiersO7itjHD8Hx/T7dliSNS/XF7wk=; fh=w56bwXb+4PEyUT7y3Iuhb+zRPvwyl4ulBOr7rUDlDrE=; b=SXiWyFMIHRsJK8sPNkdCw7wSYdCbMU/q8YGIc06bJBilm4CRVN0RUzSP58HCB1gGQO aXKjSLKIWqa2Zyy3enJhatrOc3F9xZp7QSTkl09H1BrhUKZftct4Hf7Lavqvo7nr5OdY OnPrv63ASRpGnFao+RF+BAV2pOj9C/CkEL0YfsIB0JYJAtOwYzUvy6LeuSDviuO1cyET PPFKX5gQmZMdGX2cvmPw8GU8bOnF7glp2aipJ0HQvicfbuGLdfZFQzFvwVsz1Nv1u5u3 NSI11re31yTIK/+/6fSQamHqtjuYij78SOv1Qm7yjUJs6/PWqD68k/HaeJbogJwMJnCi Rpiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=TIHizCpG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id by16-20020a056a02059000b005702257f32esi103090pgb.185.2023.11.01.08.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=TIHizCpG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BEA298077454; Wed, 1 Nov 2023 08:18:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233137AbjKAPRO (ORCPT + 99 others); Wed, 1 Nov 2023 11:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232649AbjKAPRM (ORCPT ); Wed, 1 Nov 2023 11:17:12 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30909D44; Wed, 1 Nov 2023 08:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=3dj/SzQCMYEV8JiersO7itjHD8Hx/T7dliSNS/XF7wk=; b=TIHizCpGG2gOLXLj/PnjAHXPyW U7v+2Y9R+GHnNY0cjHv0XcnG1k9IeR3pQNrc1yzxBFWOPsLF9oLoSx7Tn+wVr6ys58NPgvTqnpOw8 FhLmufIhaT+PpWDXiw38qB2k38DVuJbnrfUnGF5LtW6l/Hq0xZy3yMiIkpp7IXGIhi+hxO4a4qEJn sG3qL13z2H8L2g5pWPwgOTS0gYY6clcu7RiwLX03jdEKyE3ntoUXKvZgNmmLHNfeZFrdv0Luck41l xZIvUEyIfJsSxibIMdTBOA6m2zP/H6bxiaJJDLV9pAdwEACwMPW0SyRSTfP61qm/vXm7FeLveewdL WdDreyIg==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyCxQ-000EdY-HH; Wed, 01 Nov 2023 16:16:36 +0100 Received: from [185.17.218.86] (helo=zen..) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qyCxQ-000WPw-5b; Wed, 01 Nov 2023 16:16:36 +0100 From: Sean Nyekjaer To: Jonathan Cameron , Lars-Peter Clausen Cc: Sean Nyekjaer , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH] iio: accel: st_accel: silent spi_device_id warnings Date: Wed, 1 Nov 2023 16:16:12 +0100 Message-ID: <20231101151612.4159362-1-sean@geanix.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27079/Wed Nov 1 08:41:09 2023) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 08:18:24 -0700 (PDT) Add and correct spi_device_id entries to silent following warnings: SPI driver st-accel-spi has no spi_device_id for st,lis302dl-spi SPI driver st-accel-spi has no spi_device_id for st,lis3lv02dl-accel SPI driver st-accel-spi has no spi_device_id for st,lis3dh-accel SPI driver st-accel-spi has no spi_device_id for st,lsm330d-accel SPI driver st-accel-spi has no spi_device_id for st,lsm330dl-accel SPI driver st-accel-spi has no spi_device_id for st,lsm330dlc-accel SPI driver st-accel-spi has no spi_device_id for st,lis331dlh-accel SPI driver st-accel-spi has no spi_device_id for st,lsm330-accel SPI driver st-accel-spi has no spi_device_id for st,lsm303agr-accel SPI driver st-accel-spi has no spi_device_id for st,lis2dh12-accel SPI driver st-accel-spi has no spi_device_id for st,lng2dm-accel SPI driver st-accel-spi has no spi_device_id for st,h3lis331dl-accel SPI driver st-accel-spi has no spi_device_id for st,lis331dl-accel SPI driver st-accel-spi has no spi_device_id for st,lsm303c-accel Signed-off-by: Sean Nyekjaer --- Is the names with underscore from ACPI or? Is it fine to do this? drivers/iio/accel/st_accel.h | 35 ++++++++++++++++---------------- drivers/iio/accel/st_accel_spi.c | 1 + 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h index e7525615712b..817ccd0423d5 100644 --- a/drivers/iio/accel/st_accel.h +++ b/drivers/iio/accel/st_accel.h @@ -14,30 +14,31 @@ #include #include -#define H3LIS331DL_ACCEL_DEV_NAME "h3lis331dl_accel" -#define LIS3LV02DL_ACCEL_DEV_NAME "lis3lv02dl_accel" -#define LSM303DLHC_ACCEL_DEV_NAME "lsm303dlhc_accel" -#define LIS3DH_ACCEL_DEV_NAME "lis3dh" -#define LSM330D_ACCEL_DEV_NAME "lsm330d_accel" -#define LSM330DL_ACCEL_DEV_NAME "lsm330dl_accel" -#define LSM330DLC_ACCEL_DEV_NAME "lsm330dlc_accel" -#define LIS331DL_ACCEL_DEV_NAME "lis331dl_accel" -#define LIS331DLH_ACCEL_DEV_NAME "lis331dlh" -#define LSM303DL_ACCEL_DEV_NAME "lsm303dl_accel" -#define LSM303DLH_ACCEL_DEV_NAME "lsm303dlh_accel" -#define LSM303DLM_ACCEL_DEV_NAME "lsm303dlm_accel" -#define LSM330_ACCEL_DEV_NAME "lsm330_accel" -#define LSM303AGR_ACCEL_DEV_NAME "lsm303agr_accel" -#define LIS2DH12_ACCEL_DEV_NAME "lis2dh12_accel" +#define H3LIS331DL_ACCEL_DEV_NAME "h3lis331dl-accel" +#define LIS3LV02DL_ACCEL_DEV_NAME "lis3lv02dl-accel" +#define LSM303DLHC_ACCEL_DEV_NAME "lsm303dlhc-accel" +#define LIS3DH_ACCEL_DEV_NAME "lis3dh-accel" +#define LSM330D_ACCEL_DEV_NAME "lsm330d-accel" +#define LSM330DL_ACCEL_DEV_NAME "lsm330dl-accel" +#define LSM330DLC_ACCEL_DEV_NAME "lsm330dlc-accel" +#define LIS331DL_ACCEL_DEV_NAME "lis331dl-accel" +#define LIS331DLH_ACCEL_DEV_NAME "lis331dlh-accel" +#define LSM303DL_ACCEL_DEV_NAME "lsm303dl-accel" +#define LSM303DLH_ACCEL_DEV_NAME "lsm303dlh-accel" +#define LSM303DLM_ACCEL_DEV_NAME "lsm303dlm-accel" +#define LSM330_ACCEL_DEV_NAME "lsm330-accel" +#define LSM303AGR_ACCEL_DEV_NAME "lsm303agr-accel" +#define LIS2DH12_ACCEL_DEV_NAME "lis2dh12-accel" #define LIS3L02DQ_ACCEL_DEV_NAME "lis3l02dq" -#define LNG2DM_ACCEL_DEV_NAME "lng2dm" +#define LNG2DM_ACCEL_DEV_NAME "lng2dm-accel" #define LIS2DW12_ACCEL_DEV_NAME "lis2dw12" #define LIS3DHH_ACCEL_DEV_NAME "lis3dhh" #define LIS3DE_ACCEL_DEV_NAME "lis3de" #define LIS2DE12_ACCEL_DEV_NAME "lis2de12" #define LIS2HH12_ACCEL_DEV_NAME "lis2hh12" #define LIS302DL_ACCEL_DEV_NAME "lis302dl" -#define LSM303C_ACCEL_DEV_NAME "lsm303c_accel" +#define LIS302DL_SPI_ACCEL_DEV_NAME "lis302dl-spi" +#define LSM303C_ACCEL_DEV_NAME "lsm303c-accel" #define SC7A20_ACCEL_DEV_NAME "sc7a20" #define IIS328DQ_ACCEL_DEV_NAME "iis328dq" diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c index f72a24f45322..749d770d2350 100644 --- a/drivers/iio/accel/st_accel_spi.c +++ b/drivers/iio/accel/st_accel_spi.c @@ -160,6 +160,7 @@ static const struct spi_device_id st_accel_id_table[] = { { LIS3DHH_ACCEL_DEV_NAME }, { LIS3DE_ACCEL_DEV_NAME }, { LIS302DL_ACCEL_DEV_NAME }, + { LIS302DL_SPI_ACCEL_DEV_NAME }, { LSM303C_ACCEL_DEV_NAME }, { IIS328DQ_ACCEL_DEV_NAME }, {}, -- 2.42.0