From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0160FC48BE6 for ; Wed, 16 Jun 2021 15:58:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2F9D61185 for ; Wed, 16 Jun 2021 15:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234823AbhFPQAF (ORCPT ); Wed, 16 Jun 2021 12:00:05 -0400 Received: from aposti.net ([89.234.176.197]:51006 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235183AbhFPP7b (ORCPT ); Wed, 16 Jun 2021 11:59:31 -0400 From: Paul Cercueil To: Jonathan Cameron , Lars-Peter Clausen Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v2 0/2] Add "extended_name" to label Date: Wed, 16 Jun 2021 16:57:04 +0100 Message-Id: <20210616155706.17444-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, Here's the v2 of my previous patchset which added an "extended_name" attribute. Following the discussion on the v1, here's a set of two patches that 1. make sure we will never have channels with both labels and extended names, 2. make the extended name available to userspace as the channel's label. Cheers, -Paul Paul Cercueil (2): iio: core: Forbid use of both labels and extended names iio: core: Support reading extended name as label drivers/iio/industrialio-core.c | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) -- 2.30.2