Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp894550imm; Fri, 29 Jun 2018 08:05:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJm/TevL+9bBw7gur6olGl5ZJjkmWhnL8WS/jLxUqHlHueTM9YIpkw7GEo8wJ+ge8mmEjuO X-Received: by 2002:a63:9b19:: with SMTP id r25-v6mr12527774pgd.197.1530284709677; Fri, 29 Jun 2018 08:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530284709; cv=none; d=google.com; s=arc-20160816; b=AZRUhQ4JBaH8eySE0DL4b+vcy3qfJg0wxUxe/4DvBHy1irNNu5CA3mPEDvScJZS4Hy KtyivHfvSVpFkAP6PVtIE/OzaHWrlVR+/gaANW8QpfhmqDIT1acRhe4MO7WNy0zbH2Wp XoSXI0qVoomdJzCv7HUJZTUF7FpcWyRkigh/viGwLT8wHkJVTCa2Eln7t5+z9GbZYcbp QPPedYF22EjByJj2ZxYTOg4/NfI2d60rmQ7zYz/a7FZ7CXVhxyQlIJRgdl+ET1aaqTJm Leho+mXyB29RZ01R95A4E72dNB8yefwkgsLh3xLiFR0QacKbp+Fc9mG0WTHMBTqII1xf EVYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:date:from:references :in-reply-to:message-id:arc-authentication-results; bh=6m0RbwVxEbztBypnQVijYQoJPZmMwEBbfOS5CPb7FxI=; b=ltnmoJineRJ1bK3PYCSrmOBv1JMRS5LvsKVQ6XRu0Kzxp4PZfK0Yj9QD1dDJ+PnTVh qPp0Rii3Ml8wNXTit3KSObD+SeqO8FUu52NpF71HRzBml7+6TbBOGdQDoG3scZ1LBu3D BFx/IQvnYY4tANhPtGuYyurhOt3gRXblqFLhr9f211XDoPKSh3Iq11clxm8hIvNZmj6B bIhIhhxygDET0AMqnxOAdiQgi6ene9TeRn0GxWQpgTv/DaiNmoct/QhnQx+HcZy5loZu nIG5c6d6uWUxFIrldx0YrxHThX60OmKTVT/2iAF4B13aN4c2TQDjVT5DrhBHXHA73Kym jyEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p73-v6si4234110pfl.57.2018.06.29.08.04.48; Fri, 29 Jun 2018 08:05:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935840AbeF2LPf (ORCPT + 99 others); Fri, 29 Jun 2018 07:15:35 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:51586 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933456AbeF2LPd (ORCPT ); Fri, 29 Jun 2018 07:15:33 -0400 X-Greylist: delayed 602 seconds by postgrey-1.27 at vger.kernel.org; Fri, 29 Jun 2018 07:15:32 EDT X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id 1280541BDD; Fri, 29 Jun 2018 13:05:41 +0200 (CEST) Message-Id: <5d00983e4fb2869fd3152a609c1fffe7616c4963.1530268235.git.nikolaus.voss@loewensteinmedical.de> In-Reply-To: References: From: Nikolaus Voss Date: Fri, 29 Jun 2018 10:45:54 +0200 Subject: [PATCH 3/3] IIO: st_accel.h: sync DT and I2C device ID table strings To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I2C device ID table strings should really match the DT compatible strings (without the manufacturer prefix) to avoid confusion. This is especially reasonable when using ACPI PRP0001 HID /DT compatibility entries along with the DT compatible property in DSD which is used as a modalias (with manufacturer prefix stripped off) by the ACPI layer and thus as i2c_board_info->type by the I2C layer. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h index 2f931e4837e5..be4a4a41f849 100644 --- a/drivers/iio/accel/st_accel.h +++ b/drivers/iio/accel/st_accel.h @@ -37,23 +37,23 @@ enum st_accel_type { ST_ACCEL_MAX, }; -#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" -- 2.17.1