Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp500095pxj; Thu, 10 Jun 2021 06:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8BqWo8SnSIG79gFmaOQy8bkW8Qr26aA1cmfGRdsziiwULlWnADb10PNxqaA7w5TR7eMSa X-Received: by 2002:a17:906:b06:: with SMTP id u6mr4514052ejg.199.1623330451498; Thu, 10 Jun 2021 06:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623330451; cv=none; d=google.com; s=arc-20160816; b=WzDZGh0+k9YgheNk/s9kdV0UMbeSgRIirYfSS49WB2lxV5LnqU/K+c3QZqTyoXv8Ai 9c3DysO6mf//16KRe5pKpDn4d22/J/HKPMasb6tXCSg5rbug/JbzWCkgmrBacdDrDwZx onBzkL3AOWy0Wgfxz6DYCPrm/fRSlJUEhqsTW0DUR20BR9AVHyn5VJoWMpU98f/oEEDL GCDbkoCKQ+nsYzAVZZAI4sbdmtV6Jct69B8oBLw+F3GwV8lIakxnHFOSkKMMaMEeMOEr xIh7974GdSbn4k1gT/2mcKhisVPdHw5Ik14A3tdM7dLPVVnq/NXcEtAMMk3kAkeb4pMo 9d8A== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ug5JFgkcedWLwMhAaZFOx4blwPlgbEq5Pyulkjl7ECI=; b=BjKjlIsacVzONA3NS7SLe940VtGrJQ23BB8uQeswhXbjXGDyEdI8s3FdsV+tRQ/zku zmdEOU3HtbrmT0oG7B48BAnlq6aJkDTEOmDnGHbbahAcK2Fz9PCaLeAUQSnIV/8MwqfH S7ciuTuc5Ka4NCjqaAcMLTOnTDZkDD4i3v2Pt9e2RKbbp4pLXqzSrNw0yE3gc/d91KKF 6WCm7zhjjwUDtfMYSWg0ECsWWG4d1/kOWCfy6SDGe/raa3kyLzjqIymPvotd+UqMZKsB Iz5AExHWgm9Mr7HUrDj1/Z2ZS3rsYvV9ExRxahM537OjWzIGynb4yZuG8OGK9JGYWfXl RZ+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si2686351eje.719.2021.06.10.06.07.07; Thu, 10 Jun 2021 06:07:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230413AbhFJNGW (ORCPT + 99 others); Thu, 10 Jun 2021 09:06:22 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3195 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbhFJNGO (ORCPT ); Thu, 10 Jun 2021 09:06:14 -0400 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4G13kk2wXFz6M4h3; Thu, 10 Jun 2021 20:51:26 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:04:16 +0200 Received: from localhost (10.52.126.112) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 14:04:15 +0100 Date: Thu, 10 Jun 2021 14:04:12 +0100 From: Jonathan Cameron To: Andy Shevchenko CC: Paul Cercueil , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , linux-iio , "Linux Kernel Mailing List" Subject: Re: [PATCH 1/2] iio: core: Support removing extended name in attribute filename Message-ID: <20210610140412.000054ac@Huawei.com> In-Reply-To: References: <20210610124556.34507-1-paul@crapouillou.net> <20210610124556.34507-2-paul@crapouillou.net> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.126.112] X-ClientProxiedBy: lhreml728-chm.china.huawei.com (10.201.108.79) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jun 2021 15:58:51 +0300 Andy Shevchenko wrote: > On Thu, Jun 10, 2021 at 3:47 PM Paul Cercueil wrote: > > > > By default, when a channel has an extended name, it will appear in the > > filename of channel attributes. E.g. if the extended name is "aux", the > > filename of a "sample_rate" attribute will be something like: > > in_voltage0_aux_sample_rate > > > > Add a mechanism to disable this feature. This will be used to add a > > "extended_name" channel attribute. > > I'm afraid, NAK. Otherwise, please put an explanation that clearly > shows that it will be no ABI breakage. > I.o.w. users for the existing drivers and devices will always get > those attributes at the same platform configuration(s). > What Andy said. This was a bad design decision a long time back, but we are stuck with it. We have the _label attribute today that is the preferred route forwards for new drivers but we can't touch the old ones however annoying it might be. Jonathan