Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1994998imm; Sat, 30 Jun 2018 08:34:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOI0pE2oI2P08z+Ndp7yVOKUD4PgRoE1yGZwsSR7Mi8WIWyjzaVyuPRr4RgRaChKbtdwa/ X-Received: by 2002:a62:d39b:: with SMTP id z27-v6mr13533231pfk.182.1530372848656; Sat, 30 Jun 2018 08:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530372848; cv=none; d=google.com; s=arc-20160816; b=oDx8T/nVkamJffF3QYIwD9bdU2FeyKMIrcypRkInc9sJGgecLCVdo38h+ZPYqRkWhT EWOK7DAYrUFYq6HRIRcactqL8lOoug5hzNyrxdm1b+K/z7pxidjQcqf3v5JWvntxMifb rq+/0Q/1AJDHnEg4Fttqa3xPexwJWq9+Q62EB5VMcjMc5AeBhCPXhPutEgIHTxcyPh/q 8Ozu2aZ4Jpx37iBPpnTkVwv0ixm6lddwcURXbDfIOXwwpHw99Atnzy10N0nk+xdHZ1aE uXSWG3T5+DCVn5F3aoqvIZIurY7+LfQZU3HO9LGYCsACtBV53GNs5MMaUqRyLkxDmvcG 5a1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=qeGZ1VO82Z19axgdsuzFPfwa3GsbkfOgTqzN2RriTdM=; b=a8TPOtNFjeVPVjWmYbGvBZByAwAK7nXQc69+oJIC8KIFBQNNn7B2blirv8nTvQoALu J0RFf5Zf63EM5aLzC+uZikJjmNvpgXAitMlh3K4kHPkvlJ4CQMEszqRsnnB1ev4TLPqE 4AzxIsboVg4gEVHVGLXSmbk9D5z4qHzSEx0umkkjva3NWIj4aX8gNipBpUOK867KxUPb RDwrn4iOwqRhiSU8hH2v0DXVURS1fEhd36Nwk4xIAAHtO0//q2TOW1BDqb+Y8d6wA1sl 9t57qAf/osOIuHCwmOteosZabBOrPY3AmIlWLAka6U9OhmMe/A9CkglZNzFluutA2bVG hr/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k4IwTQsh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si9879695pgc.571.2018.06.30.08.33.52; Sat, 30 Jun 2018 08:34:08 -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; dkim=pass header.i=@kernel.org header.s=default header.b=k4IwTQsh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbeF3PdM (ORCPT + 99 others); Sat, 30 Jun 2018 11:33:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802AbeF3PdL (ORCPT ); Sat, 30 Jun 2018 11:33:11 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0307243C5; Sat, 30 Jun 2018 15:33:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530372790; bh=IFWOJbdZw5WJ4w93wdLtD/az/BojZlzn3nbyg/fokxo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k4IwTQsh6JMP/Z4KamTyloT1XAL+pqwqAGUdWNwb1NE299s0ox+50PhsAbM+Hz7b1 6byJbYoo9C3bK9AiJ1bdmbbI4jYHsoVjNubvUJAotnfBPTiQHYfznZ2BeEnu8T8H/Z tax0woKecXLaOMmJqUcG3Zd4UVywSvW7YTyYfYV0= Date: Sat, 30 Jun 2018 16:33:05 +0100 From: Jonathan Cameron To: Nikolaus Voss Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] IIO: st_accel.h: sync DT and I2C device ID table strings Message-ID: <20180630163305.00e08e17@archlinux> In-Reply-To: <5d00983e4fb2869fd3152a609c1fffe7616c4963.1530268235.git.nikolaus.voss@loewensteinmedical.de> References: <5d00983e4fb2869fd3152a609c1fffe7616c4963.1530268235.git.nikolaus.voss@loewensteinmedical.de> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jun 2018 10:45:54 +0200 Nikolaus Voss wrote: > 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 Nice to have I agree. However, it's an ABI change as this is exposed via /sys/bus/iio/devices/iio:\deviceN/name and is used by lots of scripts etc to identify the device. So we are stuck with it. There is a reason we've kept this mess here for quite some time. Jonathan > --- > 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" >