From patchwork Wed Nov 1 15:16:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 160582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp496342vqx; Wed, 1 Nov 2023 08:19:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWGmOxjehprKwUPXx4RUH6NAAbTYgJmiBxPGCXtM4VyBxS3PRpiPAUkFjpuOejM/qDkvn6 X-Received: by 2002:a05:6a20:8f0c:b0:17b:129b:1815 with SMTP id b12-20020a056a208f0c00b0017b129b1815mr18359438pzk.33.1698851967631; Wed, 01 Nov 2023 08:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698851967; cv=none; d=google.com; s=arc-20160816; b=nqdz6oUZrR/3t5WA8XEGz/9HdET6Wx1nzAHFf/WjbB4rnHZHs81Mj3xsR3dkXjqTva 5yuL7S+dvcO+KXh6GKkCQ0ikko6VOqc5PR1BuO6O+ESCBoxAVaBnSle3CUYAlGvBsGXz R+AhFcGIFHbgWfxKgkQpGRnY+5OAzyj7jb3zM4A0zM8dMLM+maM03RKea09O3232PeTx bCDt+tQlW9QZhDBcEZK+MtZuh9pew5qY1APu7UX8ssmoFaPQauYvn8X7N/srrUiM32L6 9qxL1ZrsTw0dCnwLVZfT9NHtvuueckVaVvGIHikDmlao5/7aC8JBSgVa9O7D6THbC+dT rsTw== 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 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g21-20020a17090ace9500b0028072770ee5si1030282pju.37.2023.11.01.08.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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 23.128.96.35 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 E8C758077454; Wed, 1 Nov 2023 08:19:22 -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 S232992AbjKAPRO (ORCPT + 35 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 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:19:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781375400859638890 X-GMAIL-MSGID: 1781375400859638890 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 }, {},