From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C1531ADFF7 for ; Fri, 13 Dec 2024 23:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734131252; cv=none; b=tlWQOPqSNA3q7Va2gCLDSf0Rir42rNMSZ3BwMsKDP1zz/jXGYzdSQc4HJPqGcm8A8V1QKr80bgH5HIZclKCy60z3GqWxu7T2RnQO7UaVZLCO0Vyv8NU+FMleMh6uJxlXSXxZTA+pUIPFH0CbmBrtiEFqLuljPz0u9lFADpcYqEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734131252; c=relaxed/simple; bh=/H+/b/EHC3xNySebTV+Fz3fg+2pc9KxaM+KT7VER1Zg=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Zg1VmQzcA5a+mjmF/sEgf6Ayww1E2YgLbdHfzRsNVQSCaJ3njpKIaJ9Dt+1C+FzZxy6PwRLXHcyIOnvx1jJEpmKLebfizxW/jG7P2ED38el1zzA5DaGYOZXYj8tuQlEhXWJBhpYyv7oTrF1CwZKpOKf60J/HW0g6V1ysCo2ZsHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=GP6dc8ch; arc=none smtp.client-ip=209.85.210.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="GP6dc8ch" Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-71e2bc5b90fso1102233a34.0 for ; Fri, 13 Dec 2024 15:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1734131248; x=1734736048; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=jfSZOheq1APLMyQGCWSF76X8xyeOXIl1Dcq65BLO0Rw=; b=GP6dc8chqENzHwQmqAVDiPrZ9Q4PQtKorxnT7lv80MQK6jZTAEJpP/4Cg2mOX5yat+ buqY8DoMaQ5bLPnUwNbkgDusL3ix0on3zaKOLhFyTZvt0lREgRS0j1ArUomMWj7x+/T0 NIJVVX/lvp9qA1FaisajUuPFYd3CNvq5FFuKbzfgMEBupmhYqddJFXjsTYyAhwLni8CB ZA8xSG3nbFjRxMauST+TWvAd+54355QN5wINVUq8k/FvKrPRLUEwItKRYl5h0fhH1KUM U8dLLofqGH5mTUJegGHnvjIOTE7qEVWRidvJwt7HnBoMP+V++5dMLIIvhPsMrJM+gGmY QSaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734131248; x=1734736048; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jfSZOheq1APLMyQGCWSF76X8xyeOXIl1Dcq65BLO0Rw=; b=QM+YuOV8OmqmRsLeS2DN9qM6Afn4IHfk1x6ofxCkGyfYSuE9QRVbojBOQnELtOSjYk H/okhe5WWrMHLGCCAjRWMaIA1v3B+O5Ulpw0+TIADyT0uUe2XMKRE294/fLHW+lkxai4 zOF/t8uo5oG6udAO3nUo7SR6ul8CyLI56eeR038mSF8Do5CztzpFo1B97zl1PALCbVVq lSePWta6tOh/txzUs8lFUz8o0lRUpGs76mQjk94WkHpDPQt4XAi/udxkVHThcYfpqf3R qHlW5kzIDdM2LsDeL3p3dhzJiy0y/XQMTlFAMVvHJb21e1foi2O3XtqN8bpnNOFv7vyL iwdg== X-Forwarded-Encrypted: i=1; AJvYcCWcVl5yTxChlhbgSA8TOoztM847jQOFzdTtGTCpn1f5OZY/VpqSL0GuGJAyORytY7XoGWmSOfoOEj4=@vger.kernel.org X-Gm-Message-State: AOJu0YyTAhzypZr4Xzw3ZNulHW92E6GMyHfMsp1pOTowDFYLQXN8Xvq0 7awGWgRx8DFgFDCceQIX0R33X6oF4Di+mOmL2CWaNg9GnfMDbSHRERuzvK7GCQU= X-Gm-Gg: ASbGncsejur533008TFlFNMnf4Ys1FSHC3Eu6ZxgdfxxML8kKcao0fa7ctn6NiNNbHo 3HUTjyw2+Fa8oZTRrKFpS3swcdIm3ST/wUu1SwzErczaHL3rnRM3X+FHS9+aD9YQdTfN72jj+wO m0XzX2WcIp84fnRLdUMFh8KHZH6R6vlwo20FJia9I1qG7Wl6ZHto+DxVrpd1vHSuPOrCS9x54V2 o5FeqD9pHXuxfEK4tEHz/Gf356zCbviYoVINGrWyzJD6EaX2pNnF6AN5x3NkYlXco1pzRiZpMjL aE51YCZJEnqL4+NWKg== X-Google-Smtp-Source: AGHT+IF3ggw40plUiQk3aTztRn16+YPItO3Hx5qa5rw//9gVpW2Izyaui5u8Fepbsl9Y6ePB6tTJtw== X-Received: by 2002:a05:6830:380a:b0:718:a52:e1cc with SMTP id 46e09a7af769-71e3ba3a182mr2891997a34.25.1734131248517; Fri, 13 Dec 2024 15:07:28 -0800 (PST) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e48307d7csm138229a34.14.2024.12.13.15.07.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Dec 2024 15:07:28 -0800 (PST) Message-ID: Date: Fri, 13 Dec 2024 17:07:26 -0600 Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 1/8] iio: backend: add API for interface get To: Antoniu Miclaus , jic23@kernel.org, robh@kernel.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org References: <20241213164445.23195-1-antoniu.miclaus@analog.com> Content-Language: en-US From: David Lechner In-Reply-To: <20241213164445.23195-1-antoniu.miclaus@analog.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/13/24 10:44 AM, Antoniu Miclaus wrote: > Add backend support for obtaining the interface type used. > > Reviewed-by: David Lechner > Signed-off-by: Antoniu Miclaus > --- > no changes in v8. > drivers/iio/industrialio-backend.c | 24 ++++++++++++++++++++++++ > include/linux/iio/backend.h | 11 +++++++++++ > 2 files changed, 35 insertions(+) > > diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-backend.c > index 20b3b5212da7..c792cd1e24e8 100644 > --- a/drivers/iio/industrialio-backend.c > +++ b/drivers/iio/industrialio-backend.c > @@ -636,6 +636,30 @@ ssize_t iio_backend_ext_info_set(struct iio_dev *indio_dev, uintptr_t private, > } > EXPORT_SYMBOL_NS_GPL(iio_backend_ext_info_set, IIO_BACKEND); > FYI, there has been a change that now requires namespaces to be quoted, so this series needs to be rebased and compiled on the latest iio/testing branch to make sure we catch those. Example: EXPORT_SYMBOL_NS_GPL(iio_backend_ext_info_set, "IIO_BACKEND");